Function NetworKit::GraphTools::density

Function Documentation

double NetworKit::GraphTools::density(const Graph &G) noexcept

Return the density of the input graph.

Parameters:

G – The input graph.

Returns:

double The density of the input graph.