Returns a NodeView over the graph nodes. This function wraps the :func:`G.nodes ` property.
(G)
| 51 | |
| 52 | |
| 53 | def nodes(G): |
| 54 | """Returns a NodeView over the graph nodes. |
| 55 | |
| 56 | This function wraps the :func:`G.nodes <networkx.Graph.nodes>` property. |
| 57 | """ |
| 58 | return G.nodes() |
| 59 | |
| 60 | |
| 61 | def edges(G, nbunch=None): |