multilevel.community fails to report modularity if weights are real numbers
Bug #1149658 reported by
chaosbringer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
igraph |
Fix Committed
|
Undecided
|
Gábor Csárdi |
Bug Description
The summary says it all. Graph-file attached.
library(igraph)
g<-read.
E(g)$weight<
com<-multilevel
modularity(com)
[1] -Inf
Warning message:
In max(x$modularity) : no non-missing arguments to max; returning -Inf
description: | updated |
To post a comment you must log in.
OK, this happens, because the each vertex ends up in its own community, and in this case the modularity vector returned by the C level is empty. So this is a bug in the C function.