Function NetworKit::GraphTools::size

Function Documentation

std::pair<node, node> NetworKit::GraphTools::size(const Graph &G) noexcept

Returns the number of nodes and the number of edges of the input graph.

Parameters:

G – The input graph.

Returns:

std::pair<count, count> with the number of nodes and the number of edges of the input graph.