GraphTheory
IsSimplePath
check if walk is a simple path
Calling Sequence
Parameters
Description
Examples
Compatibility
IsSimplePath(G, W)
G
-
graph
w
list or Trail object corresponding to a walk in the graph
IsSimplePath tests whether a walk is a simple path.
A simple path is one in which each vertex in the path is distinct.
withGraphTheory:
G≔CompleteGraph8
G≔Graph 1: an undirected graph with 8 vertices and 28 edges
IsSimplePathG,1,2,3,4,5
true
IsSimplePathG,1,2,3,4,5,4,6
false
The GraphTheory[IsSimplePath] command was introduced in Maple 2025.
For more information on Maple 2025 changes, see Updates in Maple 2025.
See Also
PathWeight
Download Help Document