I first populate a list of tuples which represent all the edges. At the same
time I populate a list with the weights for those edges. All this information
comes from a big text file. After they are populated I do the following:
G.add_edges(listEdges) #ERROR IS PRODUCED HERE
G.es["weight"] = listCosts
print G.get_shortest_paths('20000', '90000', weights='weight')
Sorry I am not allowed to display any more code. But what I just explained is
exactly what I am doing.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gábor
Csárdi
Sent: Monday, June 22, 2015 9:13 AM
To: Help for igraph users
Subject: Re: [igraph] Memory error
On Mon, Jun 22, 2015 at 11:10 AM, Ronquillo, Edgar Nahum <[email protected]>
wrote:
> Why would igraph ask for that big amount of GBs though?
I don't know, I don't know what you are doing.
> When I run a code with about half the vertices and edges it works perfect. It
> only takes about 700MB to fill up my list of edges and vertices and once I
> pass it to add_edges it takes another 300 or 400MB or so. It just doesn't
> make sense to me.
I don't know how to put this without just repeating myself, but please show us
what you are doing, otherwise we can't help you. :)
G.
[...]
_______________________________________________
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