Function NetworKit::GraphTools::randomNode

Function Documentation

node NetworKit::GraphTools::randomNode(const Graph &G)

Returns a random node of the input graph.

Parameters:

G – The input graph.

Returns:

A random node.