networkx.classes.function.number_of_edges

number_of_edges(G)[source]

Returns the number of edges in the graph.