[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Giant Component
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] Giant Component |
Date: |
Tue, 18 Aug 2009 09:37:57 +0200 |
Surendar,
what is the tail component? Everything else than the largest? Then
these will do:
giant.component <- function(graph, ...) {
cl <- clusters(graph, ...)
subgraph(graph, which(cl$membership == which.max(cl$csize)-1)-1)
}
tail.component <- function(graph, ...) {
cl <- clusters(graph, ...)
subgraph(graph, which(cl$membership != which.max(cl$csize)-1)-1)
}
Gabor
On Tue, Aug 18, 2009 at 12:08 AM, Surendar
Swaminathan<address@hidden> wrote:
> Hello All,
>
> I have been doing SNA metrics using Igraph in R. I have this
> question. What I have is node to node link. Is there anyway I can find
> Giant and Tail component.
>
> Surendar
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Gabor Csardi <address@hidden> UNIL DGM