Control all subgraph before merge