Thanks Tiago, works perfectly.

> 
> Can somebody explain how to retrieve the subgraph of g induced by the 
> connected component labeled 0? 

The easiest is to create a graph view:

    sub = GraphView(g, vfilt=u.a == 0)   # sub contains only the vertices of
                                         # the component with label 0


_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to