# grinpy.functions.degree.number_of_max_degree_nodes¶

grinpy.functions.degree.number_of_max_degree_nodes(G)

Return the number of nodes of the graph with degree equal to the maximum degree of the graph.

Parameters: G (NetworkX graph) – An undirected graph. The number of nodes in the graph with degree equal to the maximum degree. int

Examples

>>> G = nx.path_graph(3) # Path on 3 nodes
>>> nx.number_of_max_degree_nodes(G)
1