guided_digraph 0.1.1

A data structure for incremental live and dead state detection in an abstract transition system
Documentation
/*
    Simplest binary: run a state graph algorithm on an example input
*/

use guided_digraph::driver::{self, Algorithm};
use structopt::StructOpt;

#[derive(Debug, StructOpt)]
#[structopt(
    name = "run basic example",
    about = "Run a state graph algorithm on an example input."
)]
struct Args {
    #[structopt(help = "Path to example without file extension \
        (e.g. 'examples/handwritten/2')")]
    basename: String,

    #[structopt(short, long, default_value = "Naive")]
    algorithm: Algorithm,

    #[structopt(short, long, default_value = "10")]
    timeout: u64,
}
impl Args {
    fn run(self) {
        driver::run_single_example(
            &self.basename,
            self.algorithm,
            self.timeout,
        );
    }
}

fn main() {
    Args::from_args().run();
}