MCPcopy
hub / github.com/networkx/networkx / degree

Function degree

networkx/classes/function.py:73–79  ·  view source on GitHub ↗

Returns a degree view of single node or of nbunch of nodes. If nbunch is omitted, then return degrees of *all* nodes. This function wraps the :func:`G.degree ` property.

(G, nbunch=None, weight=None)

Source from the content-addressed store, hash-verified

71
72
73def degree(G, nbunch=None, weight=None):
74 """Returns a degree view of single node or of nbunch of nodes.
75 If nbunch is omitted, then return degrees of *all* nodes.
76
77 This function wraps the :func:`G.degree <networkx.Graph.degree>` property.
78 """
79 return G.degree(nbunch, weight)
80
81
82def neighbors(G, n):

Callers 3

volumeFunction · 0.85

Calls 1

degreeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…