Struct BuiltEdge<TNodeId, TEdgeId, TSource>
- Namespace
- SpatialNET.Network
- Assembly
- SpatialNET.Network.dll
An edge as the network builder writes it (ADR 0050).
public readonly record struct BuiltEdge<TNodeId, TEdgeId, TSource> : IEquatable<BuiltEdge<TNodeId, TEdgeId, TSource>> where TNodeId : notnull, IEquatable<TNodeId> where TEdgeId : notnull, IEquatable<TEdgeId>Type Parameters
TNodeIdTEdgeIdTSource
Implements
Inherited Members
Constructors
BuiltEdge(GraphEdge<TNodeId, TEdgeId>, TSource, double, double, long, long)
An edge as the network builder writes it (ADR 0050).
public BuiltEdge(GraphEdge<TNodeId, TEdgeId> Edge, TSource Source, double FromMeasure, double ToMeasure, long FromShard, long ToShard)Parameters
EdgeGraphEdge<TNodeId, TEdgeId>-
The edge.
SourceTSource-
The host's reference to the line it came from.
FromMeasuredouble-
Where the edge starts on the source line, as geometric length from its start (for
Substring). ToMeasuredouble-
Where the edge ends on the source line.
FromShardlong-
The shard of the node at
From. ToShardlong-
The shard of the node at
To; an edge between two shards belongs to both.
Properties
Edge
The edge.
public GraphEdge<TNodeId, TEdgeId> Edge { get; init; }Property Value
- GraphEdge<TNodeId, TEdgeId>
FromMeasure
Where the edge starts on the source line, as geometric length from its start (for Substring).
public double FromMeasure { get; init; }Property Value
FromShard
The shard of the node at From.
public long FromShard { get; init; }Property Value
Source
The host's reference to the line it came from.
public TSource Source { get; init; }Property Value
- TSource
ToMeasure
Where the edge ends on the source line.
public double ToMeasure { get; init; }Property Value
ToShard
The shard of the node at To; an edge between two shards belongs to both.
public long ToShard { get; init; }