>>   g <- read.graph("list.txt", format="edgelist")
> 
> the interpreter prompt does not come back!
> 
> The graph is huge 87000 vertices and 5100000 edges.
> 
> Is it that I did not wait long enough for the read to complete?
It is more likely that the numbers in your edge list are not continuous
(i.e. they are not from zero to 86999 if you have 87000 vertices). igraph's
edge list format assumes that for a graph with N vertices, they are denoted
by integers from 0 to N-1. If your vertex IDs are not in the range 0 to N-1,
you should read the graph using format="ncol", which is practically the same
as "edgelist" but assigns the IDs seen in your file to a vertex attribute
called $id and renumbers the "real" IDs to the range 0 to N-1.

-- 
T.

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

Reply via email to