directed_graph_density#

directed_graph_density(graph)#

Graph density - measures how dense or sparse a graph is.

The ratio of the number of directed edges in the graph to the total number of possible directed edges (given by N * (N-1) where N is the number of nodes).

Parameters:

graph (GraphView) – a directed Raphtory graph

Returns:

Directed graph density of graph.

Return type:

float