add do-subgraph as input parameters
add condition to do subgraph detection(only if some vertices are removed in
current node, that a subgraph detection will be triggered)