Called by GenericTreeLayouter before the actual layout of the graph takes place.

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

Syntax

C#
void AssignPorts( LayoutGraph graph, Node node )
Visual Basic
Sub AssignPorts ( _ graph As LayoutGraph, _ node As Node _ )

Parameters

graph
Type: yWorks.yFiles.Layout..::..LayoutGraph
the graph instance the node is part of
node
Type: yWorks.yFiles.Algorithms..::..Node
the node whose adjacent edges' ports should be set

Remarks

Called by GenericTreeLayouter before the actual layout of the graph takes place. This method assigns both the single incoming edge's target port as well as all source ports for all outgoing child edges. Note that at the time this method gets invoked, GenericTreeLayouter may have reversed some edges in order to normalize the tree structure.

See Also