IsSimpleGraph
Whether a Graph has no self-loop and no parallel (repeated) edge.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
SimpleGraphQ✓IsSimpleGraph(g)true iff g has no self-loop and no two edges with the same endpoints and the same direction-ness.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value) -> boolean | combinatorics | always |
Details
- Wolfram calls this
SimpleGraphQ; this library uses theIs…spelling everywhere. - A directed edge and its own reverse (a->b and b->a) are DIFFERENT edges, not a parallel pair -- both can be present in a simple directed graph. Two copies of the SAME undirected edge, or the same directed edge twice, are parallel.
Examples
About
| Examples | 2 |
|---|---|
| Checked against | Wolfram Language 2 agreeSageMath 2 agree |
| Crosswalk | Wolfram Language |
Implementation
mapped
sagepackages/oracle/src/mappings.ts See also: IsLoopFreeGraph, IsCompleteGraph