Show / Hide Table of Contents

Interface ILayoutAlgorithm<TVertex, TEdge, TGraph>

Represents a layout algorithm.

Inherited Members
QuikGraph.Algorithms.IAlgorithm<TGraph>.VisitedGraph
QuikGraph.Algorithms.IComputation.Compute()
QuikGraph.Algorithms.IComputation.Abort()
QuikGraph.Algorithms.IComputation.SyncRoot
QuikGraph.Algorithms.IComputation.State
QuikGraph.Algorithms.IComputation.StateChanged
QuikGraph.Algorithms.IComputation.Started
QuikGraph.Algorithms.IComputation.Finished
QuikGraph.Algorithms.IComputation.Aborted
Namespace: GraphShape.Algorithms.Layout
Assembly: GraphShape.dll
Syntax
public interface ILayoutAlgorithm<TVertex, in TEdge, out TGraph> : IAlgorithm<TGraph>, IComputation 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

VerticesPositions

Vertices positions associations.

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

Methods

| Improve this Doc View Source

GetEdgeInfo(TEdge)

Returns the extra layout information of the edge (or null).

Declaration
object GetEdgeInfo(TEdge edge)
Parameters
Type Name Description
TEdge edge
Returns
Type Description
System.Object
| Improve this Doc View Source

GetVertexInfo(TVertex)

Returns the extra layout information of the vertex (or null).

Declaration
object GetVertexInfo(TVertex vertex)
Parameters
Type Name Description
TVertex vertex
Returns
Type Description
System.Object

Events

| Improve this Doc View Source

IterationEnded

Fired when a layout iteration has been done.

Declaration
event LayoutIterationEndedEventHandler<TVertex> IterationEnded
Event Type
Type Description
LayoutIterationEndedEventHandler<TVertex>
| Improve this Doc View Source

ProgressChanged

Fired when layout algorithm progress changed.

Declaration
event ProgressChangedEventHandler ProgressChanged
Event Type
Type Description
ProgressChangedEventHandler

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