This interface handles edges that should be reversed during the hierarchic layout process.
Remarks
IEdgeReverser contains methods for reversing all (or a given edge) that point to the wrong direction, i.e. the layer indices of the source nodes are greater than the layer indices of the target nodes. It also provides methods to restore the edges that have been reversed at the end of the layout algorithm.
Implementations of this interface perform operations after the layering phase of the hierarchic layout algorithm.
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.IEdgeReverser
See Also
Methods
Reverses all edges which point to the wrong direction.
Remarks
It is called after the layering phase of the hierarchic layout algorithm.
An edge is reversed if the layer index of its source node is greater than the layer index of its target node.
Parameters
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- ldp - ILayoutDataProvider
- the ILayoutDataProvider containing layering information about the nodes and edges of the graph
See Also
Restores the original direction of edges marked as reversed.
Remarks
Parameters
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- ldp - ILayoutDataProvider
- the ILayoutDataProvider containing information about the nodes and edges of the graph
Reverses a given edge which points to the wrong direction.
Remarks
Parameters
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- ldp - ILayoutDataProvider
- the ILayoutDataProvider containing layering information about the nodes and edges of the graph
- edge - Edge
- the edge to be reversed