DFS constructor

DFS([
  1. Graph? graph,
  2. int source = -1,
  3. int target = -1
])

Constructs an AStar algorithm object.

Implementation

DFS([Graph? graph, this.source = - 1, this.target = - 1 ]) {
    this.graph = graph ?? Graph();
}