# grinpy.functions.degree.closed_neighborhood_degree_list¶

grinpy.functions.degree.closed_neighborhood_degree_list(G, nbunch)

Return a list of the unique degrees of all nodes in the closed neighborhood of the nodes in nbunch.

Parameters: G (NetworkX graph) – An undirected graph. nbunch – A single node or iterable container of nodes. A list of the degrees of all nodes in the closed neighborhood of the nodes in nbunch. list

closed_neighborhood(), neighborhood_degree_list()
>>> import grinpy as gp