/// Finishes building the CD and returns it.
Finishes building the CD and returns it.
Finishes building the CD and returns it .
pub fn build(mut self) -> CdResult<Cd<T>> {
        // Reads through the diagram.
        self.read()?;
        let len = self.cd.node_count();
        for edge_ref in self.edge_queue.into_iter() {
            let [a, b] = edge_ref.indices(len);
            self.cd.add_edge(a, b, edge_ref.edge)?;
        }
        Ok(self.cd)
    }
pub fn build ( mut self ) -> CdResult < Cd < T > > { // Reads through the diagram. self . read ( ) ? ; let len = self . cd . node_count ( ) ; for edge_ref in self . edge_queue . into_iter ( ) { let [ a , b ] = edge_ref . indices ( len ) ; self . cd . add_edge ( a , b , edge_ref . edge ) ? ; } Ok ( self . cd ) }
Finishes building the CD and returns it.
Finishes building the CD and returns it .
mut self