ClusterLayout Class

Lays a tree out as a dendrogram, as d3's cluster: the leaves are evenly spaced at the deepest level, and each parent is centered over its children. Siblings are 1 unit apart, cousins 2.

public sealed class ClusterLayout

Constructors

NameDescription
ClusterLayout()

ClusterLayout()

ClusterLayout.cs
public ClusterLayout()

No documentation is available.

Properties

NameDescription
HeightGets or sets the size of the layout along the depths. The default is 1.
WidthGets or sets the size of the layout across the depths. The default is 1.

Gets or sets the size of the layout along the depths. The default is 1.

public double Height { get; set; }

Property value

double

Gets or sets the size of the layout across the depths. The default is 1.

public double Width { get; set; }

Property value

double

Methods

NameDescription
Layout<T>(HierarchyNode<T>)Places the nodes of a tree.

Layout<T>(HierarchyNode<T>)

ClusterLayout.cs

Places the nodes of a tree.

public IReadOnlyList<HierarchyPoint<T>> Layout<T>(HierarchyNode<T> root)

Type parameters

T
The type of the data of the nodes.

Parameters

root HierarchyNode<T>
The root of the tree.

Returns

IReadOnlyList<HierarchyPoint<T>> The point of every node, in pre-order.