DirectAngularPlacementLayout

class DirectAngularPlacementLayout<T>(adapter: TreeAdapter<T>, configuration: DirectAngularPlacementConfiguration = DirectAngularPlacementConfiguration())

A radial tree layout using direct angular partitioning.

Recursively assigns angular ranges to each subtree and places nodes at the midpoint of their allocated arc on concentric circles based on depth. Each child receives a share of its parent's angular sector proportional to its subtree weight (number of descendants including itself).

Parameters

adapter

Adapter providing tree traversal over the external structure.

configuration

Layout spacing parameters.

Type Parameters

T

The node type of the external tree.

Constructors

Link copied to clipboard
constructor(adapter: TreeAdapter<T>, configuration: DirectAngularPlacementConfiguration = DirectAngularPlacementConfiguration())

Functions

Link copied to clipboard

Executes the layout algorithm and returns the result.