documentationfor yFiles for HTML 2.6

PortCandidateOptimizer

This class is an implementation of the IPortConstraintOptimizer interface that tries to assign the edges of the graph to ports considering the specified PortCandidates.

Inheritance Hierarchy
PortConstraintOptimizerBase
PortCandidateOptimizer
Implemented Interfaces

Remarks

Instances of this class can be set using property portConstraintOptimizer.

This implementation will query for IDataProviders registered with the graph with keys SOURCE_PORT_CANDIDATE_COLLECTION_DP_KEY, TARGET_PORT_CANDIDATE_COLLECTION_DP_KEY and NODE_PORT_CANDIDATE_SET_DP_KEY. It will try to assign each edge one of the matching PortCandidates without introducing too many crossings and without violating the cost or capacity constraints.

Default Values of Properties

backLoopPenalty1.0
crossingPenalty10.0d
deterministictrueA deterministic algorithm will be applied.
overUsagePenalty100.0d

Type Details

yfiles module
layout-hierarchic
yfiles-umd modules
layout-familytree, layout-hierarchic, layout-radial, layout
Legacy UMD name
yfiles.hierarchic.PortCandidateOptimizer

See Also

Constructors

Properties

Methods