Skip to content

Link rows by rownum

network

Create network links using explicit lists of target row numbers (and optionally weights).

Example

To simply link rows using a default weight of 1.0

link_rows_by_rownum(ds.target_row_nums) -> (links)

Usage

The following are the step's expected inputs and outputs and their specific types.

link_rows_by_rownum(
    target_rownums: list[number],
    *target_weights: list[number], 
    {
        "param": value
    }
) -> (links: dataset)

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Inputs


target_rownums: column:list[number]


*target_weights: column:list[number]

Optional corresponding lists of weights for those targets.

Outputs


links: dataset

A new dataset containing links (source, target and weight columns) between connected nodes.

Parameters


weight_factor: number = 1.0

Multiply link weights by this number.