pub fn to_dot<P: AsRef<Path>, F: Fn(&D) -> String>(&self, path: P, node_label: &F) {
        let mut f = File::create(path).expect("couldn't open file");

        writeln!(&mut f, "digraph {{").unwrap();
        for i in 0..self.len() {
            self.node_to_dot(&self.get_node(i), node_label, &mut f);
        }
        writeln!(&mut f, "}}").unwrap();
    }
/// Write the graph to a dot file.
Write the graph to a dot file.
Write the graph to a dot file .
pub fn to_dot<P: AsRef<Path>, F: Fn(&D) -> String>(&self, path: P, node_label: &F) {
        let mut f = File::create(path).expect("couldn't open file");
        writeln!(&mut f, "digraph {{").unwrap();
        for i in 0..self.len() {
            self.node_to_dot(&self.get_node(i), node_label, &mut f);
        }
        writeln!(&mut f, "}}").unwrap();
    }
pub fn to_dot < P : AsRef < Path > , F : Fn ( & D ) -> String > ( & self , path : P , node_label : & F ) { let mut f = File :: create ( path ) . expect ( " " ) ; writeln ! ( mut f " " ) . unwrap ( ) ; for i in 0 .. self . len ( ) { self . node_to_dot ( & self . get_node ( i ) , node_label , & mut f ) ; } writeln ! ( mut f " " ) . unwrap ( ) ; }
Write the graph to a dot file.
Write the graph to a dot file .
&self
path
P
node_label
&F
&self
path
P
node_label
&F