This documents the development version of NetworkX. Documentation for the current release can be found here.
Returns all of the neighbors of a node in the graph.
If the graph is directed returns predecessors as well as successors.
- graphNetworkX graph
Graph to find neighbors.
The node whose neighbors will be returned.
Iterator of neighbors