LINK_PATH_SOURCE - LINK_PATH_TARGET
Description
The LINK_PATH_SOURCE
- LINK_PATH_TARGET
operators return tables containing edge data, which are respectively joined to source or target nodes, created by the LINK_PATH
operator.
The output of LINK_PATH_SOURCE/LINK_PATH_TARGET
is a column containing all edges of all paths contained in the LINK_PATH
input parameter. Each row's data corresponds to the value of the traversed edge in the specified mapping table column. The generated columns are joined to LINK_PATH
's activity table in a N:1 fashion.
Syntax
LINK_PATH_SOURCE ( link_path_table.column , mapping_table1.column [, mapping_table2.column ] ... )
LINK_PATH_TARGET ( link_path_table.column , mapping_table1.column [, mapping_table2.column ] ... )
NULL handling
Object Link mapping table entries with NULL values in the IN or OUT column will register the object specified in the none-NULL entry. However, no link will be added to the Object Link graph.
Examples
[1]
![]() This example lists all edges that were traversed from the start node E to the end node E in the above graph. Note that the result of this example is independent of whether we use | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
[2] This example shows how to solve the issue of having multiple edges per pair of nodes. We can see that the result contains | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
[3] Since individual paths consist of multiple nodes and these nodes have multiple edges associated with them, we need to resolve two consecutive N:1 connections if we want to relate the edge information to a single path. In this example, we calculate how many paths traverse the same nodes, starting from node A. Before we multiply the numbers of available edges between adjacent nodes, we have to explicitly ignore 0 counts by setting them to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|