aryagraph.algorithms.structure.reciprocity# aryagraph.algorithms.structure.reciprocity(g: Any) → float[source]# Share of arcs whose reverse arc also exists (directed graphs; self-loops never count). Raises ValueError for a graph without arcs, where the ratio is undefined.