Show / Hide Table of Contents

Interface ILayoutContext<TVertex, TEdge, TGraph>

Represents a graph layout context.

Namespace: GraphShape.Algorithms.Layout
Assembly: GraphShape.dll
Syntax
public interface ILayoutContext<TVertex, TEdge, out TGraph>
    where TEdge : IEdge<TVertex> where TGraph : IVertexAndEdgeListGraph<TVertex, TEdge>
Type Parameters
Name Description
TVertex

Vertex type.

TEdge

Edge type.

TGraph

Graph type.

Properties

| Improve this Doc View Source

Graph

Graph concerned by the layout.

Declaration
TGraph Graph { get; }
Property Value
Type Description
TGraph
| Improve this Doc View Source

Mode

Layout mode.

Declaration
LayoutMode Mode { get; }
Property Value
Type Description
LayoutMode
| Improve this Doc View Source

Positions

Vertices positions.

Declaration
IDictionary<TVertex, Point> Positions { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<TVertex, Point>
| Improve this Doc View Source

Sizes

Vertices sizes.

Declaration
IDictionary<TVertex, Size> Sizes { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<TVertex, Size>

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