Skip to content

Layout igraph

network

Calculate layout, i.e. node positions, for a network.

Use igraph to create your own layout. Methods and possible parameters are described here.

Example

The following configuration would allow smaller clusters and consider fewer of the data points as noise:

layout(links) -> (ds.x, ds.y)

Usage

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

layout_igraph(links: dataset, {"param": value}) -> (x: number, y: number)

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


links: dataset

A dataset of links between nodes, i.e. containing source, target and weight columns.

Outputs


x: column:number

numerical Column with the x position in the graph.


y: column:number

numerical Column with the y position in the graph.

Parameters


This step also accepts extra parameters for the specific methods. See possible parameters in the method documentation here


method: string = "fr"

Algorithm to use. The name of a supported clustering algorithm (currently allows 'fr', 'fruchterman_reingold', 'drl', 'sugiyama').

Must be one of: "fr", "fruchterman_reingold", "drl", "sugiyama"


directed: boolean = False

Links directed. Are the links directed (true) or not (false).


seed: integer = 1

Seed. Seed to initialize the graph.