Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Dijkstra.Edge<TWeight, TLabel>

Summary

Encapsulates an edge in the graph for Dijkstra’s Algorithm, containing a weight, a label and a target node.

Generic type parameters

TWeight Type of the weight (or length or any other quantity to be minimized) of each edge between nodes.
TLabel Type that can be used to identify this edge.

Constructors

Edge<TWeight, TLabel>(TWeight weight, TLabel label, Node<TWeight, TLabel> node)
Initializes a new instance of Edge<TWeight, TLabel>.

Instance methods

string
  • Overrides: object.ToString()
Returns a string representation of this object.

Instance properties

TLabelThe label on this edge.
Node<TWeight, TLabel>The node this edge points to.
TWeightThe weight of this edge. Dijkstra’s Algorithm finds the path with the smallest total weight.