Skip to content

@graphty/layout / index / arf

Function: arf() ​

arf(g, options?): LayoutResult

Defined in: indexed/arf.ts:39

The attractive and repulsive forces layout (networkx's arf_layout). Without scale or center its result is not rescaled: the forces settle at their own scale, which scaling sets. With either, the farthest node ends scale from center.

Parameters ​

g ​

GraphSnapshot

the graph; a directed snapshot is laid out as its undirected copy

options? ​

ArfOptions = {}

the options

Returns ​

LayoutResult

dim values per node