grafos_tools/algorithms/mod.rs
1mod breadth_first_search;
2use std::{collections::HashSet, fmt::Debug};
3
4pub use breadth_first_search::*;
5
6use crate::Vertice;
7
8#[derive(Debug)]
9pub struct AlgorithmResult<T: PartialOrd + Debug> {
10 /** The path it found to the vertice */
11 pub path: Vec<Vertice<T>>,
12
13 /** The visited vertices before getting to the vertice */
14 pub visited: HashSet<Vertice<T>>,
15}