Holen Sie sich Node Grad NetworkX
G.degree[0] # return node 0 degree
Difficult Dormouse
G.degree[0] # return node 0 degree