Class ContextualLayoutContext<TVertex, TEdge, TGraph>
Contextual graph layout context.
Inheritance
System.Object
LayoutContext<TVertex, TEdge, TGraph>
ContextualLayoutContext<TVertex, TEdge, TGraph>
Implements
ILayoutContext<TVertex, TEdge, TGraph>
Inherited Members
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 ContextualLayoutContext<TVertex, TEdge, TGraph> : LayoutContext<TVertex, TEdge, TGraph>, ILayoutContext<TVertex, TEdge, TGraph> where TEdge : IEdge<TVertex> where TGraph : IVertexAndEdgeListGraph<TVertex, TEdge>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
TGraph | Graph type. |
Constructors
| Improve this Doc View SourceContextualLayoutContext(TGraph, TVertex, IDictionary<TVertex, Point>, IDictionary<TVertex, Size>)
Initializes a new instance of the ContextualLayoutContext<TVertex, TEdge, TGraph> class.
Declaration
public ContextualLayoutContext(TGraph graph, TVertex selectedVertex, IDictionary<TVertex, Point> positions, IDictionary<TVertex, Size> sizes)
Parameters
Type | Name | Description |
---|---|---|
TGraph | graph | Graph to layout. |
TVertex | selectedVertex | THe selected vertex. |
System.Collections.Generic.IDictionary<TVertex, Point> | positions | Vertices positions. |
System.Collections.Generic.IDictionary<TVertex, Size> | sizes | Vertices sizes. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceSelectedVertex
The selected vertex.
Declaration
public TVertex SelectedVertex { get; }
Property Value
Type | Description |
---|---|
TVertex |