Class MsaglGraphPopulator<TVertex, TEdge>
Base class for MSAGL graph populator.
Inheritance
System.Object
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>
MsaglGraphPopulator<TVertex, TEdge>
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: QuikGraph.MSAGL
Assembly: QuikGraph.MSAGL.dll
Syntax
public abstract class MsaglGraphPopulator<TVertex, TEdge> : AlgorithmBase<IEdgeListGraph<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 SourceMsaglGraphPopulator(IEdgeListGraph<TVertex, TEdge>)
Initializes a new instance of the MsaglGraphPopulator<TVertex, TEdge> class.
Declaration
protected MsaglGraphPopulator(IEdgeListGraph<TVertex, TEdge> visitedGraph)
Parameters
Type | Name | Description |
---|---|---|
IEdgeListGraph<TVertex, TEdge> | visitedGraph | Graph to convert to MSAGL graph. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceMsaglGraph
MSAGL graph corresponding to VisitedGraph.
Declaration
public Graph MsaglGraph { get; }
Property Value
Type | Description |
---|---|
Microsoft.Msagl.Drawing.Graph |
Methods
| Improve this Doc View SourceAddEdge(TEdge)
Called when an edge
should be added to the graph.
Declaration
protected abstract 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. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
AddNode(TVertex)
Called when a vertex
should be added to the graph.
Declaration
protected abstract 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. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
InternalCompute()
Algorithm compute step.
Declaration
protected override void InternalCompute()
Overrides
QuikGraph.Algorithms.AlgorithmBase<QuikGraph.IEdgeListGraph<TVertex, TEdge>>.InternalCompute()
|
Improve this Doc
View Source
OnEdgeAdded(MsaglEdgeEventArgs<TVertex, TEdge>)
Called when an Microsoft.Msagl.Drawing.Edge is added.
Declaration
protected virtual void OnEdgeAdded(MsaglEdgeEventArgs<TVertex, TEdge> args)
Parameters
Type | Name | Description |
---|---|---|
MsaglEdgeEventArgs<TVertex, TEdge> | args | Event arguments. |
OnNodeAdded(MsaglVertexEventArgs<TVertex>)
Called when a Microsoft.Msagl.Drawing.Node is added.
Declaration
protected virtual void OnNodeAdded(MsaglVertexEventArgs<TVertex> args)
Parameters
Type | Name | Description |
---|---|---|
MsaglVertexEventArgs<TVertex> | args | Event arguments. |
Events
| Improve this Doc View SourceEdgeAdded
Fired when an edge is added to the graph.
Declaration
public event MsaglEdgeEventHandler<TVertex, TEdge> EdgeAdded
Event Type
Type | Description |
---|---|
MsaglEdgeEventHandler<TVertex, TEdge> |
NodeAdded
Fired when a node is added to the graph.
Declaration
public event MsaglVertexNodeEventHandler<TVertex> NodeAdded
Event Type
Type | Description |
---|---|
MsaglVertexNodeEventHandler<TVertex> |