Function dfs

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