Table of Contents

Class GraphMlExportOptions<TVertex, TEdge>

Namespace
Graph1x.Serialization
Assembly
Graph1x.dll
public sealed record GraphMlExportOptions<TVertex, TEdge> : IEquatable<GraphMlExportOptions<TVertex, TEdge>> where TVertex : notnull where TEdge : IEdge<TVertex>

Type Parameters

TVertex

The vertex type.

TEdge

The edge type.

Inheritance
GraphMlExportOptions<TVertex, TEdge>
Implements
Inherited Members

Properties

EdgeAttributes

Gets the edge attributes to export: each declares a typed <key for="edge"> element and a data element per edge.

public IReadOnlyList<GraphAttribute<TEdge>> EdgeAttributes { get; init; }

Property Value

IReadOnlyList<GraphAttribute<TEdge>>

EdgeWeight

Gets the function reading an edge's weight. When set, a weight key is declared and every edge carries a data element.

public Func<TEdge, double>? EdgeWeight { get; init; }

Property Value

Func<TEdge, double>

GraphId

Gets the graph id emitted on the graph element. Defaults to "G".

public string GraphId { get; init; }

Property Value

string

VertexAttributes

Gets the vertex attributes to export: each declares a typed <key for="node"> element and a data element per vertex.

public IReadOnlyList<GraphAttribute<TVertex>> VertexAttributes { get; init; }

Property Value

IReadOnlyList<GraphAttribute<TVertex>>

VertexId

Gets the function producing a vertex's GraphML node id. Defaults to ToString().

public Func<TVertex, string>? VertexId { get; init; }

Property Value

Func<TVertex, string>