grinpy.invariants.disparity.vertex_disparity¶
-
grinpy.invariants.disparity.
vertex_disparity
(G, v)¶ Return number of distinct degrees of neighbors of v.
Parameters: - G (NetworkX graph) – An undirected graph.
- v (node) – A node in G.
Returns: The number of distinct degrees of neighbors of v.
Return type: int
See also