Class DotExportOptions<TVertex, TEdge>
- Namespace
- Graph1x.Serialization
- Assembly
- Graph1x.dll
Options controlling ToDot<TVertex, TEdge>(IReadOnlyGraph<TVertex, TEdge>, DotExportOptions<TVertex, TEdge>).
public sealed record DotExportOptions<TVertex, TEdge> : IEquatable<DotExportOptions<TVertex, TEdge>> where TVertex : notnull where TEdge : IEdge<TVertex>
Type Parameters
TVertexThe vertex type.
TEdgeThe edge type.
- Inheritance
-
DotExportOptions<TVertex, TEdge>
- Implements
-
IEquatable<DotExportOptions<TVertex, TEdge>>
- Inherited Members
Properties
EdgeLabel
Gets the function producing an edge's label attribute. When null, edges are emitted without attributes.
public Func<TEdge, string>? EdgeLabel { get; init; }
Property Value
GraphName
Gets the name emitted in the graph header. Defaults to "G".
public string GraphName { get; init; }
Property Value
VertexLabel
Gets the function producing a vertex's DOT identifier. Defaults to ToString().
public Func<TVertex, string>? VertexLabel { get; init; }