DFS class
Implementation of Depth-first Search.
@author {@link https://github.com/Mugen87|Mugen87}
Constructors
Properties
Methods
-
clear(
) → DFS - Clears the internal state of the object. A new search is now possible.
-
getPath(
) → List< int> - Returns the shortest path from the source to the target node as an array of node indices.
-
getSearchTree(
) → List< Edge> - Returns the search tree of the algorithm as an array of edges.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
) → DFS - Executes the graph search. If the search was successful, {@link DFS#found} is set to true.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited