pub fn add_edge(&mut self, a: NodeIndex, b: NodeIndex, edge: Edge) -> CdResult<()> {
        if !edge.eq_two() {
            if self.0.contains_edge(a, b) {
                return Err(CdError::RepeatEdge {
                    a: a.index(),
                    b: b.index(),
                });
            }

            self.0.add_edge(a, b, edge);
        }

        Ok(())
    }
/// Adds an edge into the Coxeter diagram.
Adds an edge into the Coxeter diagram.
Adds an edge into the Coxeter diagram .
pub fn add_edge(&mut self, a: NodeIndex, b: NodeIndex, edge: Edge) -> CdResult<()> {
        if !edge.eq_two() {
            if self.0.contains_edge(a, b) {
                return Err(CdError::RepeatEdge {
                    a: a.index(),
                    b: b.index(),
                });
            }
            self.0.add_edge(a, b, edge);
        }
        Ok(())
    }
pub fn add_edge ( & mut self , a : NodeIndex , b : NodeIndex , edge : Edge ) -> CdResult < ( ) > { if ! edge . eq_two ( ) { if self . 0 . contains_edge ( a , b ) { return Err ( CdError :: RepeatEdge { a : a . index ( ) , b : b . index ( ) , } ) ; } self . 0 . add_edge ( a , b , edge ) ; } Ok ( ( ) ) }
Adds an edge into the Coxeter diagram.
Adds an edge into the Coxeter diagram .
&mut self
a
NodeIndex
b
NodeIndex
edge
Edge
&mut self
a
NodeIndex
b
NodeIndex
edge
Edge