C

ParallelEdgeRouterData<TNode, TEdge, TNodeLabel, TEdgeLabel>

Specifies custom data for the ParallelEdgeRouter.
Inheritance Hierarchy

Members

Show:

Constructors

Parameters

Properties

Gets or sets the collection of edges affected by this router.
conversionfinal

See Also

API
AFFECTED_EDGES_DATA_KEY
Gets or sets the collection of leading edges.

A leading edge is the edge whose layout is used to obtain the layout of the corresponding multi-edges.

If no leading edge is specified for a bundle of multi-edges, it will be determined automatically. If there is more than one leading edge, the first one is chosen.

conversionfinal

See Also

API
LEADING_EDGE_DATA_KEY
Gets the edge collection that, after the layout run, will contain all multi-edges that were routed and not treated as leading edges.

The set of routed multi-edges corresponds to the edges that were hidden during the coreLayout of the ParallelEdgeRouter.

Knowing which multi-edges were identified and hidden during the core layout can be valuable information for use cases where it is required to handle such edges specifically. A frequent scenario is, for example, the requirement to place edge labels of these edges. The core layout is not able to do so because multi-edges are hidden. A generic labeling algorithm where only the labels of the multi-edges are affected and placed can now easily be applied (see GenericLabeling).

If the router runs as part of the LayoutStageStack in an ILayoutAlgorithm, stages like the labeling stage, which run after the router, can already use the information. This way, for example, the labeling stage can handle labels of non-leading, multi-edges in a specific way.

This collection will be cleared before each layout run and filled with the resulting edges during the run.
readonlyfinal

See Also

API
ROUTED_MULTI_EDGES_RESULT_DATA_KEY

Methods

Combines this instance with the given layout data.
This keeps the current instance unmodified and instead returns a new instance that dynamically combines the contents of all involved instances.
final

Parameters

data: LayoutData<TNode, TEdge, TNodeLabel, TEdgeLabel>
The LayoutData<TNode, TEdge, TNodeLabel, TEdgeLabel> to combine this instance with.

Return Value

LayoutData<TNode, TEdge, TNodeLabel, TEdgeLabel>
The combined layout data.

See Also

Developer's Guide
API
CompositeLayoutData, GenericLayoutData