DefaultOutEdgeComparer is the default implementation for the out-edge comparator used in SeriesParallelLayout.
Remarks
It keeps the order of the edges in the graph for edges without PortConstraints and considers the PortConstraints such that the order of the target nodes of the outgoing edges is similar to the port location at the source node. Note that this won't work for all cases because the target nodes may not be completely independent.
Type Details
- yfiles module
- layout-seriesparallel
- yfiles-umd modules
- layout-seriesparallel, layout
- Legacy UMD name
- yfiles.seriesparallel.DefaultOutEdgeComparer
See Also
Constructors
Creates a DefaultOutEdgeComparer instance with default settings.
Methods
Compares the two given edges considering their PortConstraints.
Remarks
The order of edges is kept unless there are PortConstraints assigned. Then the edges will be sorted to avoid edge crossings.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
Returns
- ↪number
- the order of the given two edges