Obtenez Node Degree Networkx

G.degree[0]  # return node 0 degree
Difficult Dormouse