Show / Hide Table of Contents

Class MsaglDefaultGraphPopulator<TVertex, TEdge>

Default MSAGL graph populator.

Inheritance
System.Object
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>
MsaglGraphPopulator<TVertex, TEdge>
MsaglDefaultGraphPopulator<TVertex, TEdge>
MsaglToStringGraphPopulator<TVertex, TEdge>
Implements
IAlgorithm<IEdgeListGraph<TVertex, TEdge>>
IComputation
IAlgorithmComponent
Inherited Members
MsaglGraphPopulator<TVertex, TEdge>.MsaglGraph
MsaglGraphPopulator<TVertex, TEdge>.NodeAdded
MsaglGraphPopulator<TVertex, TEdge>.OnNodeAdded(MsaglVertexEventArgs<TVertex>)
MsaglGraphPopulator<TVertex, TEdge>.EdgeAdded
MsaglGraphPopulator<TVertex, TEdge>.OnEdgeAdded(MsaglEdgeEventArgs<TVertex, TEdge>)
MsaglGraphPopulator<TVertex, TEdge>.InternalCompute()
MsaglGraphPopulator<TVertex, TEdge>.AddNode(TVertex)
MsaglGraphPopulator<TVertex, TEdge>.AddEdge(TEdge)
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.SyncRoot
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.State
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.Compute()
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.Abort()
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.StateChanged
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.OnStateChanged(EventArgs)
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.Started
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.OnStarted(EventArgs)
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.Finished
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.OnFinished(EventArgs)
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.Aborted
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.OnAborted(EventArgs)
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.VisitedGraph
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.Services
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.GetService<T>()
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.TryGetService<T>(T)
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.TryGetService(Type, Object)
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.ThrowIfCancellationRequested()
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.Initialize()
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.InternalCompute()
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>.Clean()
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: QuikGraph.MSAGL
Assembly: QuikGraph.MSAGL.dll
Syntax
public class MsaglDefaultGraphPopulator<TVertex, TEdge> : MsaglGraphPopulator<TVertex, TEdge>, IAlgorithm<IEdgeListGraph<TVertex, TEdge>>, IComputation, IAlgorithmComponent where TEdge : IEdge<TVertex>
Type Parameters
Name Description
TVertex

Vertex type.

TEdge

Edge type.

Constructors

| Improve this Doc View Source

MsaglDefaultGraphPopulator(IEdgeListGraph<TVertex, TEdge>)

Initializes a new instance of the MsaglDefaultGraphPopulator<TVertex, TEdge> class.

Declaration
public MsaglDefaultGraphPopulator(IEdgeListGraph<TVertex, TEdge> visitedGraph)
Parameters
Type Name Description
IEdgeListGraph<TVertex, TEdge> visitedGraph

Graph to convert to MSAGL graph.

Exceptions
Type Condition
System.ArgumentNullException

visitedGraph is null.

Methods

| Improve this Doc View Source

AddEdge(TEdge)

Called when an edge should be added to the graph.

Declaration
protected override Edge AddEdge(TEdge edge)
Parameters
Type Name Description
TEdge edge

Edge to add.

Returns
Type Description
Microsoft.Msagl.Drawing.Edge

Added Microsoft.Msagl.Drawing.Edge.

Overrides
QuikGraph.MSAGL.MsaglGraphPopulator<TVertex, TEdge>.AddEdge(TEdge)
Exceptions
Type Condition
System.ArgumentNullException

edge is null.

| Improve this Doc View Source

AddNode(TVertex)

Called when a vertex should be added to the graph.

Declaration
protected override Node AddNode(TVertex vertex)
Parameters
Type Name Description
TVertex vertex

Vertex to add.

Returns
Type Description
Microsoft.Msagl.Drawing.Node

Added Microsoft.Msagl.Drawing.Node.

Overrides
QuikGraph.MSAGL.MsaglGraphPopulator<TVertex, TEdge>.AddNode(TVertex)
Exceptions
Type Condition
System.ArgumentNullException

vertex is null.

| Improve this Doc View Source

GetVertexId(TVertex)

Gets the vertex identifier.

Declaration
protected virtual string GetVertexId(TVertex vertex)
Parameters
Type Name Description
TVertex vertex

Vertex to get id.

Returns
Type Description
System.String

Vertex id.

| Improve this Doc View Source

GetVertexLabel(String, TVertex)

Gets the vertex label.

Declaration
protected virtual string GetVertexLabel(string id, TVertex vertex)
Parameters
Type Name Description
System.String id

Vertex id.

TVertex vertex

Vertex to get label.

Returns
Type Description
System.String

Vertex label.

| Improve this Doc View Source

OnFinished(EventArgs)

Called on algorithm finished.

Declaration
protected override void OnFinished(EventArgs args)
Parameters
Type Name Description
System.EventArgs args

EventArgs.Empty.

Overrides
QuikGraph.Algorithms.AlgorithmBase<QuikGraph.IEdgeListGraph<TVertex, TEdge>>.OnFinished(System.EventArgs)
| Improve this Doc View Source

OnStarted(EventArgs)

Called on algorithm start.

Declaration
protected override void OnStarted(EventArgs args)
Parameters
Type Name Description
System.EventArgs args

EventArgs.Empty.

Overrides
QuikGraph.Algorithms.AlgorithmBase<QuikGraph.IEdgeListGraph<TVertex, TEdge>>.OnStarted(System.EventArgs)

Implements

IAlgorithm<TGraph>
IComputation
IAlgorithmComponent

Extension Methods

GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, String)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, String, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, XmlWriter)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, XmlReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, TextReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, String, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeAndValidateFromGraphML<TVertex, TEdge, TGraph>(TGraph, TextReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
SerializationExtensions.SerializeToXml<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>, String, String, String, String)
SerializationExtensions.SerializeToXml<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>, String, String, String, String, Action<XmlWriter, TGraph>, Action<XmlWriter, TVertex>, Action<XmlWriter, TEdge>)
  • Improve this Doc
  • View Source
In This Article
Back to top QuikGraph