Function NetworKit::GraphTools::copyNodes

Function Documentation

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

Copies all nodes of the input graph to a new graph (edges are not copied).

Parameters:

G – The input graph.

Returns:

Graph with the same nodes as the input graph (and without any edge).