Return the closed k-disparity of the graph.
The closed k-disparity of a graph is defined as:\[\]
where k is a positive integer and d_i is the frequency of i in the closed disparity sequence.
- G : graph
- A Networkx graph.
- closedKDisparity : float
- The closed k-disparity of the graph.