Function NetworKit::GraphTools::transpose

Function Documentation

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

Returns the transpose of the input graph. The graph must be directed.

Parameters:

G – The input graph.

Returns:

Transpose of the input graph.