documentationfor yFiles for HTML 2.6

NodeOrderComparer

The NodeOrderComparer compares edges according to a specified order.

Inheritance Hierarchy
NodeOrderComparer
Implemented Interfaces

Remarks

It obtains the order from a IDataProvider registered with the graph with key NODE_ORDER_COMPARABLE_DP_KEY.

Various tree layout algorithms can use this IComparer<T> to influence the resulting layout. To achieve this, use this comparator and assign it to the comparator property of the layout algorithm classes.

Type Details

yfiles module
layout-tree
yfiles-umd modules
layout-orthogonal-compact, layout-orthogonal, layout-tree, layout
Legacy UMD name
yfiles.tree.NodeOrderComparer

See Also

Constructors

Methods

Constants