Function NetworKit::GraphTools::toWeighted

Function Documentation

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

Return a weighted copy of the input graph.

Parameters:

G – The input graph.

Returns:

Weighted copy of the input graph.