Skip to main content

dfs

Function dfs 

Source
pub fn dfs(
    graph: &[Vec<usize>],
    start: usize,
    visited: &mut [bool],
) -> Vec<usize>