networks(deprecated)/path - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : networks(deprecated)/path

networks

  

path

  

finds a path in a directed tree

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

path([a, b], G)

Parameters

G

-

graph or network

[a, b]

-

list of two vertices

Description

• 

Important: The networks package has been deprecated.Use the superseding package GraphTheory instead.

• 

If there is a directed path from a to b a list containing the nodes on the path is returned. The message FAIL is returned when no such path can be found.

• 

The notion of a path depends exclusively on the status of the ancestor and daughter tables. These properties are not ordinarily maintained by the standard graph primitives such as addedge() and delete().  It is maintained by calls to spantree() and shortpathtree().

• 

This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[path](...).

Examples

Important: The networks package has been deprecated.Use the superseding package GraphTheory instead.

withnetworks:

Gpetersen:

TshortpathtreeG,1:

ancestorT

table2=1,3=2,4=5,5=1,6=1,7=6,9=5,8=2,10=6

(1)

daughterT

table1=2,5,6,2=3,8,3=,4=,5=4,9,6=7,10,7=,9=,8=,10=

(2)

path9,1,T

FAIL

(3)

path1,9,T

1,5,9

(4)

See Also

GraphTheory

networks(deprecated)[ancestor]

networks(deprecated)[daughter]

networks(deprecated)[shortpathtree]

with