Policies that describe how RemoveOverlapsStage removes node overlaps.
Type Details
- yFiles module
- algorithms
Constants
A high-quality overlap removal policy where changes to the original layout structure are avoided with the goal to keep the relative locations and geometric distances between the nodes.
Remarks
This policy for removing overlaps is similar to the layout strategy used by organic (force-directed) layout algorithms (e.g. OrganicLayout). Therefore, this stage is especially well suited to remove node overlaps in undirected graph drawings with straight-line edges, as produced by organic layout approaches.
When defining fixedNodes , the overall runtime may significantly increase. Hence, the policy SHUFFLE may be the better choice for such inputs.
Sample Graphs
A simple overlap removal policy leading to results that often resemble the look of tiles which have been dropped onto each other, where tiles correspond to nodes of the graph.
Remarks
Sample Graphs
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - OverlapRemovalPolicy
- The value to convert to an enum constant.
Returns
- ↪OverlapRemovalPolicy
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - OverlapRemovalPolicy
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.