grinpy.functions.max_degree

grinpy.functions.max_degree(G)

Return the maximum degree of G.

The maximum degree of a graph is the largest degree of any node in the graph.

G : graph
A NetworkX graph.
maxDegree : int
The maximum degree of the graph.
>>> G = nx.path_graph(3) # Path on 3 nodes
>>> nx.min_degree(G)
2