This is a generic interface for classes that provide an ordering for the nodes of a graph.
Inheritance Hierarchy
INodeSequencer
Type Details
- yfiles module
- algorithms
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.algorithms.INodeSequencer
Methods
Returns a cursor that grants access to all nodes of the given graph in some 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 input graph
Returns
- ↪INodeCursor
- a INodeCursor that grants access to all nodes of a graph
Static Methods
Creates an implementation of the interface INodeSequencer by using the given function as implementation for its nodes method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- nodes - function(Graph):INodeCursor
- A function for INodeSequencer's single abstract method nodes.
Returns
- ↪INodeSequencer
- An instance of the INodeSequencer interface based on the given function.