GraphTheory/IsSimplePath - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Home : Support : Online Help : GraphTheory/IsSimplePath

GraphTheory

  

IsSimplePath

  

check if walk is a simple path

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

IsSimplePath(G, W)

Parameters

G

-

graph

w

-

list or Trail object corresponding to a walk in the graph

Description

• 

IsSimplePath tests whether a walk is a simple path.

• 

A simple path is one in which each vertex in the path is distinct.

Examples

withGraphTheory:

GCompleteGraph8

GGraph 1: an undirected graph with 8 vertices and 28 edges

(1)

IsSimplePathG,1,2,3,4,5

true

(2)

IsSimplePathG,1,2,3,4,5,4,6

false

(3)

Compatibility

• 

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