pub fn parse(dot: &str) -> Result<Graph, String>