Create an instance of ConstraintLayerer..::..IConstraintFactory that is suitable for this layerer implementation.

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

Syntax

C#
public static ConstraintLayerer..::..IConstraintFactory CreateConstraintFactory( Graph g )
Visual Basic
Public Shared Function CreateConstraintFactory ( _ g As Graph _ ) As ConstraintLayerer..::..IConstraintFactory

Parameters

g
Type: yWorks.yFiles.Algorithms..::..Graph
the current graph for the layerer

Return Value

a ConstraintFactory bound to this graph.

Remarks

Create an instance of ConstraintLayerer..::..IConstraintFactory that is suitable for this layerer implementation. The ConstraintFactory instance is usually bound to the graph instance g, i.e. if the input graph for the layerer changes, a new ConstraintFactory instance must be retrieved. This instance can be used to create constraints for this graph instance.

See Also