grinpy.invariants.disparity.vertex_disparity

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

Return number of distinct degrees of neighbors of v.

G : graph
A Networkx graph.

v : a node in G

disparity : int
The number of distinct degrees of neighbors of v.

closed_vertex_disparity