Thanks to visit codestin.com Credit goes to networkit.github.io
Defined in File GraphIO.hpp
Public Functions
Writes graph to text file in edge list format. Keep in mind that isolated nodes are ignored.
Edge list format: for each edge {u, v}: write line “u v”
G – [in] graph
path – [in] file path
Writes graph to text file in adjacency list format.
Adjacency list format: for each node v: write “v” write “x” for each edge {v, x} end line