Implemented functional graph.