The NETWORK Procedure
PATH Statement
PATH < options >;
The PATH statement invokes an algorithm that finds the paths in the input graph. For more information about paths, see the section Path Enumeration.
You can specify the following options:
- MAXLENGTH=number
specifies the maximum number of links in a path. Any path whose length is greater than number is removed from the results. The default is the largest number that can be represented by a 32-bit integer. When the default is used, no paths are removed from the results.
- MAXLINKWEIGHT=number
specifies the maximum sum of link weights in a path. Any path whose sum of link weights is greater than number is removed from the results. The default is the largest number that can be represented by a double. When the default is used, no paths are removed from the results.
- MAXNODEWEIGHT=number
specifies the maximum sum of node weights in a path. Any path whose sum of node weights is greater than number is removed from the results. The default is the largest number that can be represented by a double. When the default is used, no paths are removed from the results.
- MAXTIME=number
specifies the maximum amount of time to spend finding paths. The type of time (either CPU time or real time) is determined by the value of the TIMETYPE= option in the PROC NETWORK statement. The default is the largest number that can be represented by a double.
- MINLENGTH=number
specifies the minimum number of links in a path. Any path that has fewer links than number is removed from the results. By default, MINLENGTH=1 and no paths are removed from the results.
- MINLINKWEIGHT=number
specifies the minimum sum of link weights in a path. Any path whose sum of link weights is less than number is removed from the results. The default is the largest (in magnitude) negative number that can be represented by a double. When the default is used, no paths are removed from the results.
- MINNODEWEIGHT=number
specifies the minimum sum of node weights in a path. Any path whose sum of node weights is less than number is removed from the results. The default is the largest (in magnitude) negative number that can be represented by a double, which causes no paths to be removed from the results.
-
OUTPATHSLINKS=CAS-libref.data-table
OUTPATHS=CAS-libref.data-table specifies the output data table to contain the path links. CAS-libref.data-table is a two-level name, where CAS-libref refers to the
casliband session identifier, and data-table specifies the name of the output data table. For more information about this two-level name, see the section Using CAS Sessions and CAS Engine Librefs in Chapter 1, Introduction.- OUTPATHSNODES=CAS-libref.data-table
specifies the output data table to contain the path nodes. CAS-libref.data-table is a two-level name, where CAS-libref refers to the
casliband session identifier, and data-table specifies the name of the output data table. For more information about this two-level name, see the section Using CAS Sessions and CAS Engine Librefs in Chapter 1, Introduction.- SINK=sink-node
specifies the sink node for path calculations. This setting overrides the use of the variable
sinkin the data table that you specify in the NODESSUBSET= option in the PROC NETWORK statement.- SOURCE=source-node
specifies the source node for path calculations. This setting overrides the use of the variable
sourcein the data table that you specify in the NODESSUBSET= option in the PROC NETWORK statement.