[Networkit] simple questions about networKIT

Maximilian Vogel maximilian.vogel at student.kit.edu
Fri Oct 2 11:51:14 CEST 2015

>> How are weighted edgelist files defined and used?
> The second question I am passing on to fellow developer Max.
A weighted edgelist has the following format:
node1 id    node2 id    edgeweight1
nodeX id    nodeY id    edgeweight2
nodeY id    nodeZ id    edgeweight3

The EdgeListReader automatically detects if the graph is weighted (3 
values per line) or not (2 values per line). The EdgeListReader cannot 
know if a graph is directed, therefore, the parameter directed is used 
for. I think that's all there is to it.


More information about the NetworKit mailing list