Routing policies for edge routing algorithms to specify whether a new path is calculated in any case or if the existing routes determine whether a new path is necessary.
Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.router.RoutingPolicy
See Also
Constants
A routing policy that indicates that a new route is calculated in any case.
Remarks
See Also
Sample Graphs
A routing policy that indicates that based on the current path it is automatically determined whether an edge is routed, and if so, the edge gets a whole new path.
Remarks
The automatic selection examines the existing, given path of an edge. Based on various criteria it heuristically determines whether or not it needs to be routed. For example, intersections with other elements or a routing style violation are clear indicators. A further criterion is when the port constraints/candidates are not properly satisfied. Edges deemed to be 'good' are not changed.
This policy is convenient for cases where it is not clear which edges the algorithm should route. For example, after a user interaction (moving a node, inserting new elements etc.), routing of edges might become necessary but depending on the action it can not definitely be said which edges need to be corrected.
See Also
Sample Graphs
A routing policy that indicates that based on the current path it is automatically determined whether the edge is routed, and if so, only the necessary segments are changed.
Remarks
This policy follows the same approach as PATH_AS_NEEDED for determining whether or not an edge is even routed. However, during routing, the changes are kept local. This means that only certain segments are changed, keeping the rest of the route, wherever appropriate. Edges deemed to be 'good' are not changed at all.
This policy is convenient for cases where it is not clear which edges the algorithm should route. For example, after a user interaction (moving a node, inserting new elements etc.), routing of edges might become necessary but depending on the action it can not definitely be said which edges need to be corrected.
See Also
Sample Graphs
Static Methods
Converts the argument to RoutingPolicy.
Parameters
A map of options to pass to the method.
- value - RoutingPolicy
- The value to convert to RoutingPolicy.
Returns
- ↪RoutingPolicy
- Either
value
if it is already a RoutingPolicy or an appropriate converted value.