๐ Walks, paths, circuits
The rule
- A walk is any route along edges, one edge after another. Edges and dots may repeat.
- A trail is a walk that never uses the same edge twice. Dots may repeat.
- A path is a walk that never visits the same dot twice.
- A circuit is a trail that starts and ends at the same dot.
- Every path is a trail, and every trail is a walk.
- First check that every step is a real edge. A jump between dots with no line is not allowed.
- Then look for repeats. The same pair of dots twice means a repeated edge.
Examples
Is A โ B โ C โ D a path? โ Yes
- AB, BC and CD are all edges
- The dots A, B, C, D are all different
- It is a path
Every step is an edge and no dot is repeated.
Is A โ B โ D a walk? โ No
- AB is an edge
- BD is not an edge
- So it is not a walk at all
There is no edge from B to D.
Is A โ B โ C โ A โ E a trail? Is it a path? โ A trail, not a path
- Edges: AB, BC, CA, AE. All different, so it is a trail
- The dot A is visited twice, so it is not a path
No edge repeats, but the dot A does.
Is A โ B โ C โ A โ B a trail? โ No
- Edges: AB, BC, CA, AB
- AB is used twice
- It is a walk, but not a trail
The edge AB is used twice.
The postie walks A โ C โ D โ E โ A. Is it a circuit? โ Yes
- Edges: AC, CD, DE, EA. All real, all different
- It is a trail
- It ends at A, where it started: a circuit
It is a trail that ends where it started.
Watch out
- โA circuit can repeat edges.โ No: a circuit is a trail, so no edge is used twice.
- โA path can revisit a dot.โ No: a path never visits a dot twice. A trail can.
- Skipping the edge check. A jump between dots with no line is not a step of a walk.