NetworkX
2.3
Install
Tutorial
Reference
Introduction
Graph types
Algorithms
Functions
Graph
Nodes
networkx.classes.function.nodes
networkx.classes.function.number_of_nodes
networkx.classes.function.neighbors
networkx.classes.function.all_neighbors
networkx.classes.function.non_neighbors
networkx.classes.function.common_neighbors
Edges
Self loops
Attributes
Freezing graph structure
Graph generators
Linear algebra
Converting to and from other data formats
Relabeling nodes
Reading and writing graphs
Drawing
Randomness
Exceptions
Utilities
Glossary
Developer Guide
Release Log
License
Credits
Citing
Bibliography
Examples
NetworkX
Docs
»
Reference
»
Functions
»
networkx.classes.function.neighbors
networkx.classes.function.neighbors
¶
neighbors
(
G
,
n
)
[source]
¶
Returns a list of nodes connected to node n.