networks[path] - finds a path in a directed tree
|
Calling Sequence
|
|
path([a, b], G)
|
|
Parameters
|
|
G
|
-
|
graph or network
|
[a, b]
|
-
|
list of two vertices
|
|
|
|
|
Description
|
|
•
|
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.
>
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?