Class DoubleTreeLayoutAlgorithm<TVertex, TEdge, TGraph>
Double tree layout algorithm.
Inheritance
System.Object
LayoutAlgorithmBase<TVertex, TEdge, TGraph>
ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, DoubleTreeLayoutParameters>
ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, DoubleTreeVertexType, System.Object, DoubleTreeLayoutParameters>
DoubleTreeLayoutAlgorithm<TVertex, TEdge, TGraph>
Implements
IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph, DoubleTreeLayoutParameters>
IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph>
ILayoutAlgorithm<TVertex, TEdge, TGraph>
QuikGraph.Algorithms.IAlgorithm<TGraph>
QuikGraph.Algorithms.IComputation
Inherited Members
ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, DoubleTreeLayoutParameters>.GetParameters()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GraphShape.Algorithms.Layout.Contextual
Assembly: GraphShape.dll
Syntax
public class DoubleTreeLayoutAlgorithm<TVertex, TEdge, TGraph> : ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, DoubleTreeVertexType, object, DoubleTreeLayoutParameters>, IAlgorithm, IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph, DoubleTreeLayoutParameters>, IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph>, ILayoutAlgorithm<TVertex, TEdge, TGraph, DoubleTreeVertexType, object>, ILayoutAlgorithm<TVertex, TEdge, TGraph>, IAlgorithm<TGraph>, IComputation where TVertex : class where TEdge : IEdge<TVertex> where TGraph : IBidirectionalGraph<TVertex, TEdge>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
TGraph | Graph type |
Constructors
| Improve this Doc View SourceDoubleTreeLayoutAlgorithm(TGraph, IDictionary<TVertex, Point>, IDictionary<TVertex, Size>, TVertex, DoubleTreeLayoutParameters)
Initializes a new instance of the DoubleTreeLayoutAlgorithm<TVertex, TEdge, TGraph> class.
Declaration
public DoubleTreeLayoutAlgorithm(TGraph visitedGraph, IDictionary<TVertex, Point> verticesPositions, IDictionary<TVertex, Size> verticesSizes, TVertex selectedVertex, DoubleTreeLayoutParameters parameters = null)
Parameters
Type | Name | Description |
---|---|---|
TGraph | visitedGraph | Graph to layout. |
System.Collections.Generic.IDictionary<TVertex, Point> | verticesPositions | Vertices positions. |
System.Collections.Generic.IDictionary<TVertex, Size> | verticesSizes | Vertices sizes. |
TVertex | selectedVertex | Root vertex. |
DoubleTreeLayoutParameters | parameters | Optional algorithm parameters. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
System.ArgumentException |
|
DoubleTreeLayoutAlgorithm(TGraph, IDictionary<TVertex, Size>, TVertex, DoubleTreeLayoutParameters)
Initializes a new instance of the DoubleTreeLayoutAlgorithm<TVertex, TEdge, TGraph> class.
Declaration
public DoubleTreeLayoutAlgorithm(TGraph visitedGraph, IDictionary<TVertex, Size> verticesSizes, TVertex selectedVertex, DoubleTreeLayoutParameters parameters = null)
Parameters
Type | Name | Description |
---|---|---|
TGraph | visitedGraph | Graph to layout. |
System.Collections.Generic.IDictionary<TVertex, Size> | verticesSizes | Vertices sizes. |
TVertex | selectedVertex | Root vertex. |
DoubleTreeLayoutParameters | parameters | Optional algorithm parameters. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
System.ArgumentException |
|
Properties
| Improve this Doc View SourceDefaultParameters
Default algorithm parameters to use if no parameters provided at construction.
Declaration
protected override DoubleTreeLayoutParameters DefaultParameters { get; }
Property Value
Type | Description |
---|---|
DoubleTreeLayoutParameters |
Overrides
GraphShape.Algorithms.Layout.ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, GraphShape.Algorithms.Layout.Contextual.DoubleTreeLayoutParameters>.DefaultParameters
Methods
| Improve this Doc View SourceInternalCompute()
Algorithm compute step.
Declaration
protected override void InternalCompute()
Overrides
Implements
QuikGraph.Algorithms.IAlgorithm<TGraph>
QuikGraph.Algorithms.IComputation