dynetx.classes.function.degree_histogram(G, t=None)

Return a list of the frequency of each degree value.

Parameters:G (Graph opject) – DyNetx graph object
t : snapshot id (default=None)
snapshot id
Returns:hist – A list of frequencies of degrees. The degree values are the index in the list.
Return type:list


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