本文へ移動

@eightkk/vue-weave / core / layoutRadialGraph

Function: layoutRadialGraph() ​

layoutRadialGraph(nodes, edges, options?): GraphLayout

Defined in: src/core/graphLayouts.ts:176

Radial layout: nodes sit on concentric rings by breadth-first depth from the roots. A single root is placed at the centre; several roots share the first ring. Each subtree receives an angular wedge proportional to its leaf count.

Parameters ​

nodes ​

readonly IdentifiedNode[]

edges ​

readonly GraphEdge<unknown>[]

options? ​

GraphRadialLayoutOptions = {}

Returns ​

GraphLayout

MIT ライセンスで公開しています。