networkx.classes.function.number_of_edges

number_of_edges(G)[source]

Return the number of edges in the graph.