Thanks! 2018-04-25 18:01 GMT-03:00 Tiago de Paula Peixoto <[email protected]>:
> On 25.04.2018 20:54, Andre Vieira wrote: > > lscc = label_largest_component(g) > > gaux = GraphView(g,vfilt=lscc) > > comp, hist = label_components(gaux) > > print comp.a > > The comp.a always returns a pure unfiltered array, which corresponds to the > unfiltered graph. To get a filtered array, you have to do > > print comp.fa > > which will return an array of length 16, instead of 25. > > But note that this array will also only contain zeros. But this is correct, > as the graph has only one component, which is labeled zero. > > > -- > Tiago de Paula Peixoto <[email protected]> > _______________________________________________ > graph-tool mailing list > [email protected] > https://lists.skewed.de/mailman/listinfo/graph-tool >
_______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
