IsPathGraph
Whether a Graph is a simple path — a single chain of vertices, each joined once to the next.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
PathGraphQ!IsPathGraph(g)true iff g is simple (no self-loop, no repeated edge) and its underlying graph is a path.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value) -> boolean | combinatorics | always |
Details
- Wolfram calls this
PathGraphQ; this library uses theIs…spelling everywhere (see IsConnectedGraph's own note).
Examples
Properties #
About
| Examples | 6 |
|---|---|
| Checked against | Wolfram Language 5 agree1 differ |
| Crosswalk | Wolfram Language |
See also: PathGraph, IsTreeGraph, IsAcyclicGraph