igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] loading graph


From: Gábor Csárdi
Subject: Re: [igraph] loading graph
Date: Sat, 15 Jun 2013 09:45:40 -0400

igraph vertex ids start from 0, so if you have a vertex with id 1188399215, then you'll have that many nodes.

Use symbolic vertex names instead of the numeric ids.

Gabor


On Sat, Jun 15, 2013 at 9:40 AM, 四正(红砖) <address@hidden> wrote:
Hi folks,

I'm using igraph in python.

I use Read_Edgelist() to load graph with 5652 nodes and 45874 edges, which is like (it seems that the mail can't be delivered with attached file, so I give some examples here):

10413 1146021490
10457 1315741643
10457 1345454230
10457 1582157323
10473 1294077684
10487 1613962150
10487 1642316384
10487 1642471052
10503 1345454230
10503 1495433400
10503 1582157323
10503 1639733600
10503 1642538700
10514 1639733600
11022 1345454230
11022 1582157323
11022 1639733600
11083 1582157323
11083 1639733600
11387 1418859182
11387 1639138142
48046 1356307991
48046 1433740551
48046 1639733600
101880 1170444854
101880 1188399215

However, it will rapidly eat out my 32G memory.

But if I re-name the nodes from 0, it works well.

Is it because the original names are too long, so that they occupies much memory? but there are only 5652 nodes there...

Gang

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]