pub fn first_unfull_node_id(&self) -> Option<usize> {
        (0..self.size())
            .filter(|&i| {
                let n: u8 = self.neighbors(i).map(|j| self.bonds.get(i, j)).sum();
                n < crate::Atoms::max_bonds(self.atoms[i])
            })
            .next()
    }
/// Returns the node id of the first atom, that has free bonds.
Returns the node id of the first atom, that has free bonds.
Returns the node id of the first atom that has free bonds .
pub fn first_unfull_node_id(&self) -> Option<usize> {
        (0..self.size())
            .filter(|&i| {
                let n: u8 = self.neighbors(i).map(|j| self.bonds.get(i, j)).sum();
                n < crate::Atoms::max_bonds(self.atoms[i])
            })
            .next()
    }
pub fn first_unfull_node_id ( & self ) -> Option < usize > { ( 0 .. self . size ( ) ) . filter ( | & i | { let n : u8 = self . neighbors ( i ) . map ( | j | self . bonds . get ( i , j ) ) . sum ( ) ; n < crate :: Atoms :: max_bonds ( self . atoms [ i ] ) } ) . next ( ) }
Returns the node id of the first atom, that has free bonds.
Returns the node id of the first atom that has free bonds .
&self