|
From: | Benika H |
Subject: | Re: [igraph] Get communities with less than 8 nodes then remove isolates |
Date: | Wed, 4 Feb 2015 20:26:44 -0500 |
Ah indeed you are correct. Your code should work fine...On Wed, Feb 4, 2015 at 7:59 PM, Gábor Csárdi <address@hidden> wrote:_______________________________________________On Wed, Feb 4, 2015 at 7:53 PM, Chris Watson <address@hidden> wrote:Again, you need to adjust parentheses.which(c1$csize < 8) & which(c1$csize > 2)This is actually not good, which() returns a numeric vector, so a logical 'and' on it does not make much sense.Again, what is wrong withright_size <- which(sizes(wc) < 8 & sizes(wc) > 1)subg <- induced.subgraph(y, which(membership(wc) %in% right_size))?G.[...]
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |