Function composition based on graph declarations.