flow graph datastructure complete