hiperwalk.Multigraph.number_of_edges#

Multigraph.number_of_edges(u=None, v=None)[source]#

Return number of edges.

Return number of edges in the multigraph if u is None and v is None. Otherwise, return the number of edges incident to both u and v.

Parameters:
u, vdefault=None

Vertices of the Graph.

Returns:
Number of edges in the graph