from_txt/
from_txt.rs

1fn main() {
2    let (input_graph, output_directory) = {
3        let args = std::env::args().skip(1).collect::<Vec<_>>();
4
5        if args.len() != 2 {
6            println!("Usage: bfs <converted graph directory> <output directory>");
7            return;
8        }
9
10        (args[0].clone(), args[1].clone())
11    };
12
13    let source_file = std::fs::File::open(input_graph).unwrap();
14
15    graph_csr::Graph::<u32>::from_txt_adjacency_list(source_file, &output_directory).unwrap();
16}