# networkx.classes.function.degree_histogram¶

degree_histogram(G)[source]

Return a list of the frequency of each degree value.

Parameters: G (Networkx graph) – A graph hist – A list of frequencies of degrees. The degree values are the index in the list. list

Notes

Note: the bins are width one, hence len(list) can be large (Order(number_of_edges))