Class MsaglIdentifiableGraphPopulator<TVertex, TEdge>
MSAGL graph populator (using identifiable vertices).
Inheritance
System.Object
AlgorithmBase<IEdgeListGraph<TVertex, TEdge>>
MsaglGraphPopulator<TVertex, TEdge>
MsaglIdentifiableGraphPopulator<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 sealed class MsaglIdentifiableGraphPopulator<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 SourceMsaglIdentifiableGraphPopulator(IEdgeListGraph<TVertex, TEdge>, VertexIdentity<TVertex>)
Initializes a new instance of the MsaglIdentifiableGraphPopulator<TVertex, TEdge> class.
Declaration
public MsaglIdentifiableGraphPopulator(IEdgeListGraph<TVertex, TEdge> visitedGraph, VertexIdentity<TVertex> vertexIdentity)
Parameters
Type | Name | Description |
---|---|---|
IEdgeListGraph<TVertex, TEdge> | visitedGraph | Graph to convert to MSAGL graph. |
VertexIdentity<TVertex> | vertexIdentity | Delegate that given a vertex return its identifier. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
Methods
| Improve this Doc View SourceAddEdge(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 |
|
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 |
|