[graph-tool] Get all the dependant nodes or a root node in a new sub-graph
josubg at gmail.com
Wed Jul 4 13:59:58 CEST 2012
I have a graph that contains all the word of a text. This graph is a a
directed acyclic graph.
I want to reconstruct sequences of this text so I need to get all the nodes
and edges that are dependent of a root node or their children. In other
words I want a Sub-tree of a tree.
I cant get it with a recursive ad-hoc function, using out_neighbours(), but
I am wondering if there is another more efficient way to obtain it. I
searched in the doc but i don't find it.
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Get-all-the-dependant-nodes-or-a-root-node-in-a-new-sub-graph-tp4024745.html
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
More information about the graph-tool