def degree(G, nbunch=None, weight=None):
    return G.degree(nbunch, weight)
Return degree of single node or of nbunch of nodes.
dataset/ETHPy150Open networkx/networkx/networkx/classes/function.py/degree