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)
| 71 | |
| 72 | |
| 73 | def 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 | |
| 82 | def neighbors(G, n): |
no test coverage detected
searching dependent graphs…