This class provides methods for efficiently sorting graph elements in graph structures.
Inheritance Hierarchy
SortingAlgorithm
Type Details
- yfiles module
- algorithms
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.algorithms.Sorting
Static Methods
Sorts the nodes of a given graph by an integer key associated with each node through a IDataProvider.
Remarks
The nodes are sorted in ascending order.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- graph - Graph
- the given graph
- keys - IDataProvider
- the IDataProvider that returns the keys based on which the nodes will be sorted
Domain YNode Values number an value representing the key based on which the nodes will be sorted