Hi, how can I read/import a graph, stored in a text file, mygraph.txt, and written in a form of edges list (column 1: node u, column 2: node v)
1 2
1 3
1 4
2 5
3 4
3 5
into Networkit?
I guess something like this?
G = readGraph("/home/JohnRambo/Documents/myFolder/mygraph.txt")
P.S.: After several attempts I am not able yet to make it work...and I did not find clear instructions in the networkit guide!
I found this solution:
Output: