dot-parser 0.6.1

This library provides a parser for the DOT/Graphviz graph description language, as well as useful functions to transform those graphs.
Documentation

use dot_parser::*;

fn main() {
    let raw = ast::Graph::try_from(
        "// This graph uses identifiers that begin with keywords.
        digraph { 
node_1 -> node_2
}",
    );
    match raw {
        Ok(graph) => {
            //println!("{:#?}", graph);
            println!("{:#?}", canonical::Graph::from(graph));
        }
        Err(e) => {
            println!("{}", e);
        }
    }
}