pub fn to_dot(&self) -> String {
        let mut lines: Vec<String> = vec!["digraph {".to_string(), "node [shape=box]".to_string()];
        lines.append(&mut self.nodes.to_dot());
        for edge in self.edges.iter() {
            lines.push(edge.to_dot());
        }
        lines.push("}".to_string());
        lines.join("\n")
    }
/// Convert graph to dot format.
Convert graph to dot format.
Convert graph to dot format .
pub fn to_dot(&self) -> String {
        let mut lines: Vec<String> = vec!["digraph {".to_string(), "node [shape=box]".to_string()];
        lines.append(&mut self.nodes.to_dot());
        for edge in self.edges.iter() {
            lines.push(edge.to_dot());
        }
        lines.push("}".to_string());
        lines.join("\n")
    }
pub fn to_dot ( & self ) -> String { let mut lines : Vec < String > = vec ! [ " " to_string ( ) " " to_string ( ) ] ; lines . append ( & mut self . nodes . to_dot ( ) ) ; for edge in self . edges . iter ( ) { lines . push ( edge . to_dot ( ) ) ; } lines . push ( " " . to_string ( ) ) ; lines . join ( " \n " ) }
Convert graph to dot format.
Convert graph to dot format .
&self