Class DirectedGraphMLAlgorithm<TVertex, TEdge>
Algorithm that creates a DirectedGraph from a given directed graph.
Inheritance
System.Object
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>
DirectedGraphMLAlgorithm<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.Serialization
Assembly: QuikGraph.Serialization.dll
Syntax
[CLSCompliant(false)]
public sealed class DirectedGraphMLAlgorithm<TVertex, TEdge> : AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>, IAlgorithm<IVertexAndEdgeListGraph<TVertex, TEdge>>, IComputation, IAlgorithmComponent where TEdge : IEdge<TVertex>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
Constructors
| Improve this Doc View SourceDirectedGraphMLAlgorithm(IVertexAndEdgeListGraph<TVertex, TEdge>, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
Initializes a new instance of the DirectedGraphMLAlgorithm<TVertex, TEdge> class.
Declaration
public DirectedGraphMLAlgorithm(IVertexAndEdgeListGraph<TVertex, TEdge> visitedGraph, VertexIdentity<TVertex> vertexIdentity, EdgeIdentity<TVertex, TEdge> edgeIdentity)
Parameters
Type | Name | Description |
---|---|---|
IVertexAndEdgeListGraph<TVertex, TEdge> | visitedGraph | Graph to visit. |
VertexIdentity<TVertex> | vertexIdentity | Vertex identity method. |
EdgeIdentity<TVertex, TEdge> | edgeIdentity | Edge identity method. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceDirectedGraph
Gets the resulting DirectedGraph.
Declaration
public DirectedGraph DirectedGraph { get; }
Property Value
Type | Description |
---|---|
DirectedGraph |
Methods
| Improve this Doc View SourceInternalCompute()
Algorithm compute step.
Declaration
protected override void InternalCompute()
Overrides
QuikGraph.Algorithms.AlgorithmBase<QuikGraph.IVertexAndEdgeListGraph<TVertex, TEdge>>.InternalCompute()
Events
| Improve this Doc View SourceFormatEdge
Fired when a new link is added to the DirectedGraph.
Declaration
public event Action<TEdge, DirectedGraphLink> FormatEdge
Event Type
Type | Description |
---|---|
System.Action<TEdge, DirectedGraphLink> |
FormatGraph
Fired when the graph is about to be returned.
Declaration
public event Action<IVertexAndEdgeListGraph<TVertex, TEdge>, DirectedGraph> FormatGraph
Event Type
Type | Description |
---|---|
System.Action<IVertexAndEdgeListGraph<TVertex, TEdge>, DirectedGraph> |
FormatNode
Fired when a new node is added to the DirectedGraph.
Declaration
public event Action<TVertex, DirectedGraphNode> FormatNode
Event Type
Type | Description |
---|---|
System.Action<TVertex, DirectedGraphNode> |