igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] igraph for R: label nodes in the Main Component


From: Tamas Nepusz
Subject: Re: [igraph] igraph for R: label nodes in the Main Component
Date: Sun, 16 Apr 2017 21:27:16 +0200

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 <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]