documentationfor yFiles for HTML 3.0.0.3

PortCandidateSelector

This class is an implementation of the IPortCandidateSelector interface that tries to select suitable LayoutPortCandidates considering the specified NodePortCandidates and EdgePortCandidates.

Inheritance Hierarchy
PortCandidateSelector
Implemented Interfaces

Remarks

Instances of this class can be set using property portCandidateSelector.

This implementation will query sourcePortCandidates, targetPortCandidates and nodePortCandidates. It will try to assign each edge one of the matching LayoutPortCandidates considering their cost without introducing too many crossings and without violating the capacity constraints.

Default Values of Properties

backLoopCost1.0
crossingCost10.0d
deterministictrueA deterministic algorithm will be applied.
overUsageCost100.0d

Type Details

yFiles module
algorithms

See Also

Constructors

Properties

Methods