Update flow graph.