Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
number_of_edges
Returns the number of edges in the graph.