use clap::Parser;
use lender::for_;
use webgraph::graphs::bvgraph::BvGraphSeq;
#[derive(Parser, Debug)]
#[command(about = "Prints the arcs of a graph", long_about = None)]
struct Args {
basename: String,
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
let args = Args::parse();
let graph = BvGraphSeq::with_basename(&args.basename).load()?;
for_!((src, succ) in graph {
for dst in succ {
println!("{} -> {}", src, dst);
}
});
Ok(())
}