This class is an implementation of the IPortConstraintOptimizer interface which can be registered with the HierarchicLayouter instance using it's PortConstraintOptimizer method.

Namespace: yWorks.yFiles.Layout.Hierarchic.Incremental
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
public class PCListOptimizer : AbstractPortConstraintOptimizer
Visual Basic
Public Class PCListOptimizer _ Inherits AbstractPortConstraintOptimizer

Remarks

This class is an implementation of the IPortConstraintOptimizer interface which can be registered with the HierarchicLayouter instance using it's PortConstraintOptimizer method. It will query the graph's DataProvider repository for the SourcePcListDpKey and TargetPcListDpKey keys and expects them to hold ICollection instances of PortCandidate s for each edge. Additionally it will query the DataProvider associated with NodeDpKey and expects PortCandidateSet instances associated with each node in the input graph.

This implementation will then try to assign each edge one of the PortCandidates without creating too many crossings or violating the cost constraints for each PortCandidate.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.Layout.Hierarchic.Incremental..::..AbstractPortConstraintOptimizer
    yWorks.yFiles.Layout.Hierarchic.Incremental..::..PCListOptimizer

See Also