Dear all,

I want to create a graph in C, and import a .txt file as following:
=============
0 49389 5
0 49390 3
1 49298 3
1 49391 5
2 49392 2
3 49393 5
.....
=============
It means an edge weighted 5 form 0 to 49389, an edge weighted 3 form 0 to 
49390......(actually,it's fine that it's undirected).
The graph is a little big, 200,000 nodes.(perhaps a sparse matrix)

Solution 1. save as a igraph_matrix_t, but it needs too many RAM. It's 
impossible

Solution 2. use igraph_read_graph_edgelist, but it can't be weighted. The file 
only can be 2 nodes separated by a space.

How can I create the graph from this big weighted edgelist file?

Thanks for answering
James Fu

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

Reply via email to