[graph-tool] Get all the dependant nodes or a root node in a new sub-graph