Dijkstra class
A class with the tools needed to solve a shortest path problem with the Dijkstra algorithm.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
solve(
Vertex start, Vertex destination) → Path -
A starting vertex
start
and a destination vertexdestination
are passed in order to solve the shortest path problem by using the dijkstra algorithm. A FIFO queue with each vertex is returned in which the shortest path is contained. -
solveByString(
String start, String destination) → Path - Finds vertices by their strings and uses these to find the shortest path in between them.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited