Install
Tutorial
Reference
Releases
Developer
Gallery
Guides
Home Page
GitHub
v2.6
devel (latest)
current (stable)
Introduction
Graph types
Algorithms
Functions
networkx.classes.function.degree
networkx.classes.function.degree_histogram
networkx.classes.function.density
networkx.classes.function.info
networkx.classes.function.create_empty_copy
networkx.classes.function.is_directed
networkx.classes.function.to_directed
networkx.classes.function.to_undirected
networkx.classes.function.is_empty
networkx.classes.function.add_star
networkx.classes.function.add_path
networkx.classes.function.add_cycle
networkx.classes.function.subgraph
networkx.classes.function.subgraph_view
networkx.classes.function.induced_subgraph
networkx.classes.function.restricted_view
networkx.classes.function.reverse_view
networkx.classes.function.edge_subgraph
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
networkx.classes.function.edges
networkx.classes.function.number_of_edges
networkx.classes.function.density
networkx.classes.function.non_edges
networkx.classes.function.selfloop_edges
networkx.classes.function.number_of_selfloops
networkx.classes.function.nodes_with_selfloops
networkx.classes.function.is_weighted
networkx.classes.function.is_negatively_weighted
networkx.classes.function.set_node_attributes
networkx.classes.function.get_node_attributes
networkx.classes.function.set_edge_attributes
networkx.classes.function.get_edge_attributes
networkx.classes.function.is_path
networkx.classes.function.path_weight
networkx.classes.function.freeze
networkx.classes.function.is_frozen
Graph generators
Linear algebra
Converting to and from other data formats
Relabeling nodes
Reading and writing graphs
Drawing
Randomness
Exceptions
Utilities
Glossary
networkx.classes.function.number_of_nodes
¶
number_of_nodes
(
G
)
[source]
¶
Returns the number of nodes in the graph.