Table of Contents

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

TNodeId
TEdgeId
TSource

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

Edge GraphEdge<TNodeId, TEdgeId>

The edge.

Source TSource

The host's reference to the line it came from.

FromMeasure double

Where the edge starts on the source line, as geometric length from its start (for Substring).

ToMeasure double

Where the edge ends on the source line.

FromShard long

The shard of the node at From.

ToShard long

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

double

FromShard

The shard of the node at From.

public long FromShard { get; init; }

Property Value

long

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

double

ToShard

The shard of the node at To; an edge between two shards belongs to both.

public long ToShard { get; init; }

Property Value

long