Table of Contents

Struct GraphNode<TNodeId>

Namespace
SpatialNET.Network
Assembly
SpatialNET.Network.dll

A node of a network as the host returns it (ADR 0049).

public readonly record struct GraphNode<TNodeId> : IEquatable<GraphNode<TNodeId>> where TNodeId : notnull, IEquatable<TNodeId>

Type Parameters

TNodeId

The host's node id.

Implements

Inherited Members

Constructors

GraphNode(TNodeId, int, Coordinate, bool)

A node of a network as the host returns it (ADR 0049).

public GraphNode(TNodeId Id, int TypeId, Coordinate Location, bool Blocked = false)

Parameters

Id TNodeId

The id; unique across all feature classes of the host.

TypeId int

The type (see SpatialNET.Network.TypeRegistry); 0 for an untyped helper node.

Location Coordinate

Where the node lies; set for every node, also for helper nodes.

Blocked bool

The normal switching state: a blocked node is reached, but not passed.

Properties

Blocked

The normal switching state: a blocked node is reached, but not passed.

public bool Blocked { get; init; }

Property Value

bool

Id

The id; unique across all feature classes of the host.

public TNodeId Id { get; init; }

Property Value

TNodeId

Location

Where the node lies; set for every node, also for helper nodes.

public Coordinate Location { get; init; }

Property Value

Coordinate

TypeId

The type (see SpatialNET.Network.TypeRegistry); 0 for an untyped helper node.

public int TypeId { get; init; }

Property Value

int