Show / Hide Table of Contents

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
LayoutContext<TVertex, TEdge, TGraph>.Positions
LayoutContext<TVertex, TEdge, TGraph>.Sizes
LayoutContext<TVertex, TEdge, TGraph>.Graph
LayoutContext<TVertex, TEdge, TGraph>.Mode
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 Source

ContextualLayoutContext(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

selectedVertex is null.

System.ArgumentNullException

sizes is null.

Properties

| Improve this Doc View Source

SelectedVertex

The selected vertex.

Declaration
public TVertex SelectedVertex { get; }
Property Value
Type Description
TVertex

Implements

ILayoutContext<TVertex, TEdge, TGraph>

Extension Methods

GraphHelpers.GetDistances<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph, out Double[,])
  • Improve this Doc
  • View Source
In This Article
Back to top GraphShape