Show / Hide Table of Contents

Class DirectedGraphMLAlgorithm<TVertex, TEdge>

Algorithm that creates a DirectedGraph from a given directed graph.

Inheritance
System.Object
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>
DirectedGraphMLAlgorithm<TVertex, TEdge>
Implements
IAlgorithm<IVertexAndEdgeListGraph<TVertex, TEdge>>
IComputation
IAlgorithmComponent
Inherited Members
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.SyncRoot
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.State
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.Compute()
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.Abort()
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.StateChanged
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.OnStateChanged(EventArgs)
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.Started
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.OnStarted(EventArgs)
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.Finished
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.OnFinished(EventArgs)
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.Aborted
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.OnAborted(EventArgs)
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.VisitedGraph
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.Services
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.GetService<T>()
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.TryGetService<T>(T)
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.TryGetService(Type, Object)
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.ThrowIfCancellationRequested()
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.Initialize()
AlgorithmBase<IVertexAndEdgeListGraph<TVertex, TEdge>>.InternalCompute()
AlgorithmBase<IVertexAndEdgeListGraph<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.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 Source

DirectedGraphMLAlgorithm(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

visitedGraph is null.

System.ArgumentNullException

vertexIdentity is null.

System.ArgumentNullException

edgeIdentity is null.

Properties

| Improve this Doc View Source

DirectedGraph

Gets the resulting DirectedGraph.

Declaration
public DirectedGraph DirectedGraph { get; }
Property Value
Type Description
DirectedGraph

Methods

| Improve this Doc View Source

InternalCompute()

Algorithm compute step.

Declaration
protected override void InternalCompute()
Overrides
QuikGraph.Algorithms.AlgorithmBase<QuikGraph.IVertexAndEdgeListGraph<TVertex, TEdge>>.InternalCompute()

Events

| Improve this Doc View Source

FormatEdge

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>

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