> More probably I am mistaking, but I loaded an edge list graph
> (graph<-read.graph("graph.txt", format="edgelist",0, TRUE), with 7
> nodes but vcount(..) shows me 8 (nodes).
> The nodes in my graph are identified by a numeric number  1-7 (graph
> is shown in below).
igraph uses zero-based vertex indices in edge list files, so your input file 
has an isolated vertex with ID zero. That's why you are seeing 8 vertices 
instead of 7. You can either recode your input file to zero-based indices or 
delete the extra vertex after you have loaded the file.

-- 
T.
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to