Vertices and edge are indexed from one in R igraph, since version 0.6, so you don't need the minus ones.
Gabor On Tue, Nov 25, 2014 at 5:11 PM, "Manuel J. Zetina-Rejón" <[email protected]> wrote: > Hi, > > I know there is no future plan to include the CPM in igraph. So I decide to > run the code in http://igraph.wikidot.com/community-detection-in-r#toc0 > > However, I’m getting the error message: > Error in .Call("R_igraph_create", as.numeric(edges) - 1, as.numeric(n), : > At structure_generators.c:84 : Invalid (negative) vertex id, Invalid > vertex id > In addition: Warning message: > In .Call("R_igraph_cliques", graph, as.numeric(min), as.numeric(max), : > At cliques.c:192 :directionality of edges is ignored for directed graphs > > > Any ideas of what is wrong? I’ve tried both directed & undirected graphs, > also weighted & unweighted and is not running. I’m using mac. > > Thank you! > > Manuel > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
