I have a beginner's question. I'm running various community-finders an a data set. I've had success with spinglass and walktrap, but I can't get fastgreedy to run. See below:
> D <- read.table("Ds.dat")
> B <-D[,1:2]-1 > library(igraph) > g <- graph(t(as.matrix(B)), directed=FALSE + ) > E(g)$weight <- D[,3] > fastgreedy.community(g, merges=TRUE, modular=TRUE, weights=E(g)$weight)
Error in fastgreedy.community(g, merges = TRUE, modular = TRUE, weights = E(g)$weight) : At fast_community.c:536 : fast-greedy community finding works only on simple graphs, Invalid value >
The data file "Ds.dat" is, so far as I can see, a "simple graph." That is, there are no self loops.
Here is the data file:
-- Linton C. Freeman Institute for Mathematical Behavioral Sciences and Department of Sociology
School of Social Sciences SSPA 2143 University of California Irvine, CA 92697-5100