Class ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, TVertexInfo, TEdgeInfo, TParameters>
Base class for all ILayoutAlgorithm<TVertex, TEdge, TGraph, TVertexInfo, TEdgeInfo>.
Inheritance
Implements
Inherited Members
Namespace: GraphShape.Algorithms.Layout
Assembly: GraphShape.dll
Syntax
public abstract class ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, TVertexInfo, TEdgeInfo, TParameters> : ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, TParameters>, IAlgorithm, IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph, TParameters>, IParameterizedLayoutAlgorithm<TVertex, TEdge, TGraph>, ILayoutAlgorithm<TVertex, TEdge, TGraph, TVertexInfo, TEdgeInfo>, ILayoutAlgorithm<TVertex, TEdge, TGraph>, IAlgorithm<TGraph>, IComputation where TEdge : IEdge<TVertex> where TGraph : IVertexAndEdgeListGraph<TVertex, TEdge> where TParameters : class, ILayoutParameters
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
TGraph | Graph type. |
TVertexInfo | Vertex information type. |
TEdgeInfo | Edge information type. |
TParameters | Parameters type. |
Constructors
| Improve this Doc View SourceParameterizedLayoutAlgorithmBase(TGraph)
Initializes a new instance of the ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, TVertexInfo, TEdgeInfo, TParameters> class.
Declaration
protected ParameterizedLayoutAlgorithmBase(TGraph visitedGraph)
Parameters
Type | Name | Description |
---|---|---|
TGraph | visitedGraph | Graph to layout. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ParameterizedLayoutAlgorithmBase(TGraph, IDictionary<TVertex, Point>, TParameters)
Initializes a new instance of the ParameterizedLayoutAlgorithmBase<TVertex, TEdge, TGraph, TVertexInfo, TEdgeInfo, TParameters> class.
Declaration
protected ParameterizedLayoutAlgorithmBase(TGraph visitedGraph, IDictionary<TVertex, Point> verticesPositions, TParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
TGraph | visitedGraph | Graph to layout. |
System.Collections.Generic.IDictionary<TVertex, Point> | verticesPositions | Vertices positions. |
TParameters | parameters | Optional algorithm parameters. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceEdgesInfos
Extra edges information, calculated by the layout.
Declaration
public IDictionary<TEdge, TEdgeInfo> EdgesInfos { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<TEdge, TEdgeInfo> |
VerticesInfos
Extra vertices information, calculated by the layout.
Declaration
public IDictionary<TVertex, TVertexInfo> VerticesInfos { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<TVertex, TVertexInfo> |
Methods
| Improve this Doc View SourceCreateLayoutIterationEventArgs(Int32, Double, String, IDictionary<TVertex, Point>)
Creates event arguments for IterationEnded.
Declaration
protected override ILayoutIterationEventArgs<TVertex> CreateLayoutIterationEventArgs(int iteration, double statusInPercent, string message, IDictionary<TVertex, Point> verticesPositions)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | iteration | Number of the current iteration. |
System.Double | statusInPercent | Status of the layout algorithm in percent. |
System.String | message | Message representing the status of the algorithm. |
System.Collections.Generic.IDictionary<TVertex, Point> | verticesPositions | Vertices positions associations. |
Returns
Type | Description |
---|---|
ILayoutIterationEventArgs<TVertex> | A new instance of ILayoutInfoIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo>. |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
System.ArgumentOutOfRangeException |
|
GetEdgeInfo(TEdge)
Returns the extra layout information of the edge
(or null).
Declaration
public override object GetEdgeInfo(TEdge edge)
Parameters
Type | Name | Description |
---|---|---|
TEdge | edge |
Returns
Type | Description |
---|---|
System.Object |
Overrides
GetVertexInfo(TVertex)
Returns the extra layout information of the vertex
(or null).
Declaration
public override object GetVertexInfo(TVertex vertex)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex |
Returns
Type | Description |
---|---|
System.Object |
Overrides
Events
| Improve this Doc View SourceInfoIterationEnded
Fired when a layout iteration has been done (with more detailed information).
Declaration
public event LayoutIterationEndedEventHandler<TVertex, TEdge, TVertexInfo, TEdgeInfo> InfoIterationEnded
Event Type
Type | Description |
---|---|
LayoutIterationEndedEventHandler<TVertex, TEdge, TVertexInfo, TEdgeInfo> |