def degree_histogram(G):
    counts = Counter(d for n, d in G.degree())
    return [counts.get(i, 0) for i in range(max(counts) + 1)]
Print attribute values in a layer.
dataset/ETHPy150Open networkx/networkx/networkx/classes/function.py/degree_histogram--crossover with--dataset/ETHPy150Open cgarrard/osgeopy-code/ospybook/ospybook/__init__.py/print_attributes