Show / Hide Table of Contents

Class XmlSerializableGraph<TVertex, TEdge, TGraph>

A base class that creates a proxy to a graph that is serializable in XML.

Inheritance
System.Object
XmlSerializableGraph<TVertex, TEdge, TGraph>
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
[Serializable]
public class XmlSerializableGraph<TVertex, TEdge, TGraph>
    where TEdge : IEdge<TVertex> where TGraph : IMutableVertexAndEdgeListGraph<TVertex, TEdge>, new()
Type Parameters
Name Description
TVertex

Vertex type.

TEdge

Edge type.

TGraph

Graph type.

Constructors

| Improve this Doc View Source

XmlSerializableGraph()

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

Declaration
public XmlSerializableGraph()
| Improve this Doc View Source

XmlSerializableGraph(TGraph)

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

Declaration
public XmlSerializableGraph(TGraph graph)
Parameters
Type Name Description
TGraph graph

Graph to serialize.

Exceptions
Type Condition
System.ArgumentNullException

graph is null.

Properties

| Improve this Doc View Source

Edges

Gets the edges to serialize.

Declaration
public XmlSerializableGraph<TVertex, TEdge, TGraph>.XmlEdgeList Edges { get; set; }
Property Value
Type Description
XmlSerializableGraph.XmlEdgeList<>
| Improve this Doc View Source

Graph

Gets the graph to serialize.

Declaration
public TGraph Graph { get; }
Property Value
Type Description
TGraph
| Improve this Doc View Source

Vertices

Gets the vertices to serialize.

Declaration
public XmlSerializableGraph<TVertex, TEdge, TGraph>.XmlVertexList Vertices { get; set; }
Property Value
Type Description
XmlSerializableGraph.XmlVertexList<>

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