1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::probing::probe;

use crate::graph::{Graph, Node};
use crate::path::PathFinding;
use crate::probing;

pub struct DepthFirstSearch {}

impl PathFinding for DepthFirstSearch {
    fn execute(&self, source: Node, target: Node, graph: &Graph) -> Graph {
        return probe(source.clone(), target.id, graph, probing::pop);
    }
}