global_reciprocity#

global_reciprocity(graph)#

Reciprocity - measure of the symmetry of relationships in a graph, the global reciprocity of the entire graph. This calculates the number of reciprocal connections (edges that go in both directions) in a graph and normalizes it by the total number of directed edges.

Parameters:

graph (GraphView) – a directed Raphtory graph

Returns:

reciprocity of the graph between 0 and 1.

Return type:

float