Class ShardData<TNodeId, TEdgeId>
- Namespace
- SpatialNET.Imp
- Assembly
- SpatialNET.Imp.dll
The content of one shard: its nodes and every edge that touches one of them (ADR 0049).
public sealed record ShardData<TNodeId, TEdgeId> : IEquatable<ShardData<TNodeId, TEdgeId>> where TNodeId : notnull, IEquatable<TNodeId> where TEdgeId : notnull, IEquatable<TEdgeId>Type Parameters
TNodeIdTEdgeId
Inheritance
Implements
Inherited Members
Constructors
ShardData(IReadOnlyList<GraphNode<TNodeId>>, IReadOnlyList<GraphEdge<TNodeId, TEdgeId>>)
The content of one shard: its nodes and every edge that touches one of them (ADR 0049).
public ShardData(IReadOnlyList<GraphNode<TNodeId>> Nodes, IReadOnlyList<GraphEdge<TNodeId, TEdgeId>> Edges)Parameters
NodesIReadOnlyList<GraphNode<TNodeId>>-
The nodes of the shard.
EdgesIReadOnlyList<GraphEdge<TNodeId, TEdgeId>>-
Every edge with at least one end in the shard, also the edges to other shards.
Properties
Edges
Every edge with at least one end in the shard, also the edges to other shards.
public IReadOnlyList<GraphEdge<TNodeId, TEdgeId>> Edges { get; init; }Property Value
- IReadOnlyList<GraphEdge<TNodeId, TEdgeId>>
Nodes
The nodes of the shard.
public IReadOnlyList<GraphNode<TNodeId>> Nodes { get; init; }Property Value
- IReadOnlyList<GraphNode<TNodeId>>