grinpy.invariants.disparity.inverse_disparity¶
-
grinpy.invariants.disparity.
inverse_disparity
(G)¶ Return the inverse disparity of the graph.
The inverse disparity of a graph is defined as:
\[\sum_{v \in V(G)}\]rac{1}{disp(v)}
where V(G) is the set of nodes of G and disp(v) is the disparity of the vertex v.
- G : graph
- A Networkx graph.
- inverseDisparity : float
- The inverse disparity of the graph.
CW_disparity, closed_CW_disparity, closed_inverse_disparity