I am trying to get all of the communities that have less than 8 nodes but more than 1 node.
I've tried many things thus far.
Immediate help is needed.
y <- graph.data.frame(t, directed=FALSE)
z <- graph.data.frame(u, directed=FALSE)
wc <- walktrap.community(y, weights = edgeList$Weight, steps=6, merges =TRUE, modularity = TRUE, membership = TRUE)
x <- which(sizes(wc) < 8 & sizes(wc) >1)
x
subg <-induced.subgraph(y,which(membership(wc) == x))
I've also tried the methods cliques, clusters and decompose.