hiperwalk.WeightedGraph.number_of_edges#

WeightedGraph.number_of_edges()#

Return the total number of edges in the graph.

This method calculates and returns the cardinality of the edge set, indicating the total count of all edges present in the graph, including loops.

Returns:
int

The total number of edges in the graph.