#

Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

#

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.