Skip to content

Link sequence items

network

Create network links between consecutive pairs in a column of sequences.

Example

link_sequence_items(ds.items, ds.sequences) -> (links)

Usage

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

link_sequence_items(
    items: number|category,
    sequences: list[category]|list[number]
) -> (links: dataset)

Inputs


items: column:number|category

A column of Items. Should contain unique IDs identifying each item, and corresponding to the IDs in the sequences column.


sequences: column:list[category]|list[number]

Column to construct links with its consecutive pairs. The sequences should be lists of IDs, corresponding to the IDs in the items column.

Outputs


links: dataset

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