Class SimpleTreeLayoutAlgorithm<TVertex, TEdge, TGraph>
Simple tree layout algorithm.
Inheritance
System.Object
LayoutAlgorithmBase<TVertex, TEdge, TGraph>
ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, SimpleTreeLayoutParameters>
DefaultParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, SimpleTreeLayoutParameters>
SimpleTreeLayoutAlgorithm<TVertex, TEdge, TGraph>
Implements
IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph, SimpleTreeLayoutParameters>
IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph>
ILayoutAlgorithm<TVertex, TEdge, TGraph>
QuikGraph.Algorithms.IAlgorithm<TGraph>
QuikGraph.Algorithms.IComputation
Inherited Members
ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, SimpleTreeLayoutParameters>.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
Assembly: GraphShape.dll
Syntax
public class SimpleTreeLayoutAlgorithm<TVertex, TEdge, TGraph> : DefaultParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, SimpleTreeLayoutParameters>, IAlgorithm, IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph, SimpleTreeLayoutParameters>, IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph>, 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 SourceSimpleTreeLayoutAlgorithm(TGraph, IDictionary<TVertex, Point>, IDictionary<TVertex, Size>, SimpleTreeLayoutParameters)
Initializes a new instance of the SimpleTreeLayoutAlgorithm<TVertex, TEdge, TGraph> class.
Declaration
public SimpleTreeLayoutAlgorithm(TGraph visitedGraph, IDictionary<TVertex, Point> verticesPositions, IDictionary<TVertex, Size> verticesSizes, SimpleTreeLayoutParameters 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. |
SimpleTreeLayoutParameters | parameters | Optional algorithm parameters. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
SimpleTreeLayoutAlgorithm(TGraph, IDictionary<TVertex, Size>, SimpleTreeLayoutParameters)
Initializes a new instance of the SimpleTreeLayoutAlgorithm<TVertex, TEdge, TGraph> class.
Declaration
public SimpleTreeLayoutAlgorithm(TGraph visitedGraph, IDictionary<TVertex, Size> verticesSizes, SimpleTreeLayoutParameters parameters = null)
Parameters
Type | Name | Description |
---|---|---|
TGraph | visitedGraph | Graph to layout. |
System.Collections.Generic.IDictionary<TVertex, Size> | verticesSizes | Vertices sizes. |
SimpleTreeLayoutParameters | parameters | Optional algorithm parameters. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
Methods
| Improve this Doc View SourceInternalCompute()
Algorithm compute step.
Declaration
protected override void InternalCompute()
Overrides
Implements
QuikGraph.Algorithms.IAlgorithm<TGraph>
QuikGraph.Algorithms.IComputation