networkx.classes.function.degreeΒΆ

degree(G, nbunch=None, weight=None)[source]ΒΆ

Returns a degree view of single node or of nbunch of nodes. If nbunch is omitted, then return degrees of all nodes.