Class GraphMlExportOptions<TVertex, TEdge>
- Namespace
- Graph1x.Serialization
- Assembly
- Graph1x.dll
Options controlling ToGraphMl<TVertex, TEdge>(IReadOnlyGraph<TVertex, TEdge>, GraphMlExportOptions<TVertex, TEdge>).
public sealed record GraphMlExportOptions<TVertex, TEdge> : IEquatable<GraphMlExportOptions<TVertex, TEdge>> where TVertex : notnull where TEdge : IEdge<TVertex>
Type Parameters
TVertexThe vertex type.
TEdgeThe edge type.
- Inheritance
-
GraphMlExportOptions<TVertex, TEdge>
- Implements
-
IEquatable<GraphMlExportOptions<TVertex, TEdge>>
- 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
GraphId
Gets the graph id emitted on the graph element. Defaults to "G".
public string GraphId { get; init; }
Property Value
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; }