Function NetworKit::GraphTools::toUndirected

Function Documentation

Graph NetworKit::GraphTools::toUndirected(const Graph &G)

Returns an undirected copy of the input graph.

Parameters:

G – The input graph.

Returns:

Undirected copy of the input graph.