Мой код:
Код: Выделить всё
import networkx as nx
g = nx.read_edgelist(filepath, comments='%', data=[('rank',int),('timestamp',float)])
print(g)
output : Graph with 10106 nodes and 39024 edges
[img]https: //i.sstatic.net/rK5KnYkZ.png[/img]
И если я открою файл .edge в коде vs, я увижу, что края 50 тыс. появляются так, как и следовало ожидать:< /p>

Подробнее здесь: https://stackoverflow.com/questions/785 ... r-of-edges