flow_graph: Fix graphical printing memoizing bug