[build] graph builder: small function rewriting update