|
| From: | Richard Geddes |
| Subject: | Re: [igraph] Question on max id node |
| Date: | Sun, 09 Mar 2008 18:22:42 -0400 |
| User-agent: | Thunderbird 2.0.0.12 (X11/20080227) |
|
Well, initially I imported an edgelist with igraph_read_graph_edgelist(&graph, input_file, 0, false); and ran igraph_community_fastgreedy(&graph, NULL, &merges, &modularity); and got normal results. Then, to get at the graph attributes, I attached the C attribute handler: igraph_i_set_attribute_table(&igraph_cattribute_table); imported the edgelist with: igraph_read_graph_ncol(&graph, input_file, NULL true, false, IGRAPH_UNDIRECTED); and ran the community function on the graph and I get different results... when importing with igraph_read_graph_edgelist, 11 nodes and 19 edges are reported are reported.. which is correct, however when importing with the igraph_read_graph_ncol function, 19 nodes and 19 edges are reported. Am I using igraph_read_graph_ncol correctly? Thanks Richard Richard Geddes wrote: Thanks. Looks like what I was looking for. Tamas Nepusz wrote: |
| [Prev in Thread] | Current Thread | [Next in Thread] |