*nodelistbypath2

Creates a node path from the starting node to the ending node.

Syntax

*nodelistbypath2 node_id1 node_id2 list_id flag

Type

HyperMesh Tcl Modify

Description

Creates a node path from the starting node to the ending node.

Inputs

node_id1
The ID of the first node.
node_id2
The ID of the second node.
list_id
The ID of the node list to populate. Valid values are 1 and 2.
flag
0 - If both node_id1 and node_id2 lie on free edges, the path will follow free edges where possible. Otherwise, the shortest path is returned. This is the same as running *nodelistbypath.
1 - Always return the shortest path.

Example

To determine the path between nodes 100 and 110 using the shortest path:

*nodelistbypath2 100 110 1 1

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

10-SA1-130