You're right. This solved it! Thanks, Sukrit
________________ Sukrit Gupta <http://sites.google.com/view/sukrit>, B.Eng. (CS, PEC, In). C: 0091 856.680.0668 | E: *[email protected] <[email protected]>* On Thu, Jun 1, 2017 at 4:48 PM, Tiago de Paula Peixoto <[email protected]> wrote: > On 01.06.2017 09:35, isukritgupta wrote: > > Also, I created the gt file for the network, but it is around 800 MB! > > So, cannot upload it. > > It's pretty obvious what is happening. > > If you look in your file, there are node indexes that are huge, > eg. 100049587. > > So after you add your edges, the graph will have more than 100 million > nodes, the vast majority of which have degree zero. > > So what you need to do is to map these non-contiguous vertices to a > contiguous range. You can do this by hand, or you can add the > add_edge_list() function that does it for you if you pass the > hashed=True parameter: > > https://graph-tool.skewed.de/static/doc/graph_tool.html# > graph_tool.Graph.add_edge_list > > Best, > Tiago > > -- > Tiago de Paula Peixoto <[email protected]> > _______________________________________________ > graph-tool mailing list > [email protected] > https://lists.skewed.de/mailman/listinfo/graph-tool >
_______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
