Hi, Something like this should do the trick:
cl <- clusters(g) V(g)$in.giant <- membership(cl) == which.max(sizes(cl)) T. On Sun, Apr 16, 2017 at 9:10 PM, Richard Benton <[email protected]> wrote: > Hi All, > Apologies for forgetting to note the platform. I'm using igraph in R and > I'm trying to construct a vertex level attribute that just flags TRUE or > FALSE for whether the vertex is in the graph's giant component. > Thank you, > Richard > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > >
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
