Table of Contents

Enum WeightKind

Namespace
SpatialNET.Network
Assembly
SpatialNET.Network.dll

How the value of a weight and the length of an edge turn into the cost of the edge (ADR 0049).

public enum WeightKind

Fields

Absolute = 1

Cost = value, whatever the length, for example a fixed time for a ferry.

Length = 0

Cost = length; the value is not used.

LengthOverValue = 3

Cost = length ÷ value, for example a travel time from a speed; the value must be greater than 0.

PerLength = 2

Cost = value × length, for example a resistance per kilometre.