isSimple(G)
This method checks whether a graph is simple: does not contain loops or multiple edges. Note that since graph, digraph and bigraph do not allow multiple edges, a graph of class MixedGraph can only have multiple edges of different types.
In the following example, there are no loops or multiple edges.
|
|
|
|
|
This example contains multiple edges on vertices 1 and 2.
|
|
|
|
|
This example contains a loop.
|
|
|
|
|
The source of this document is in StatGraphs.m2:776:0.