# grinpy.invariants.disparity.closed_vertex_disparity¶

grinpy.invariants.disparity.closed_vertex_disparity(G, v)

Return number of distinct degrees of nodes in the closed neighborhood of v.

Parameters: G (NetworkX graph) – An undirected graph. v (node) – A node in G. The number of distinct degrees of nodes in the closed neighborhood of v. int