[CORE] Delete flow graph construction because it is not well designed
[CORE] Add flow graph structure