/// Creates a Coxeter diagram from an iterator over the entries of its
/// linear diagram.
Creates a Coxeter diagram from an iterator over the entries of its
linear diagram.
Creates a Coxeter diagram from an iterator over the entries of its linear diagram .
pub fn from_lin_diagram_iter<I: Iterator<Item = T>>(iter: I, dim: usize) -> Self {
        let mut cox = Self(Matrix::from_fn(dim, dim, |i, j| {
            if i == j {
                T::ONE
            } else {
                T::TWO
            }
        }));
        for (i, edge) in iter.enumerate() {
            cox.link(i, i + 1, edge);
        }
        cox
    }
pub fn from_lin_diagram_iter < I : Iterator < Item = T > > ( iter : I , dim : usize ) -> Self { let mut cox = Self ( Matrix :: from_fn ( dim , dim , | i , j | { if i == j { T :: ONE } else { T :: TWO } } ) ) ; for ( i , edge ) in iter . enumerate ( ) { cox . link ( i , i + 1 , edge ) ; } cox }
Creates a Coxeter diagram from an iterator over the entries of its
linear diagram.
Creates a Coxeter diagram from an iterator over the entries of its linear diagram .
iter
I
dim
usize