Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.tree.RootNodePolicy
See Also
Constants
Root node policy for choosing the center node as root node of the tree.
Remarks
A center node induces a minimum depth tree when being used as the root of that tree.
See Also
Sample Graphs
Root node policy for choosing a node with indegree 0
as root node of the tree.
Root node policy for choosing a custom node as the root node of the tree.
Remarks
The root node is specified using a IDataProvider registered with the graph with key SELECTED_ROOT_DP_KEY.
See Also
Sample Graphs
Root node policy for choosing a weighted center node as root node of the tree.
Remarks
A weighted center node is a node which is part of the greatest number of all undirected paths in a graph.
See Also
Sample Graphs
Static Methods
Converts the argument to RootNodePolicy.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - RootNodePolicy
- The value to convert to RootNodePolicy.
Returns
- ↪RootNodePolicy
- Either
value
if it is already a RootNodePolicy or an appropriate converted value.