hiperwalk.WeightedGraph.is_simple#

WeightedGraph.is_simple()[source]#

Return True if the graph has no multiedges or weights.

A simple graph, in this context, does not include multiple edges between the same pair of vertices or any weighted edges, although loops are permitted.

Notes

The Graph class allows for loops in the graph.