pub fn add_bond(&mut self, x : usize, y : usize, z : i32) {
        if self.matrix.get(x as usize, y as usize) != 0 {
            panic!("{}", "bond has already been set!")
        } else {
            self.matrix.set(x, y, z);
        }
    }
// Add a single bond between two atoms in the molecule
// returns a happy string if the new bond was valid and recorded,
// returns an error string if the new bond was invalid, (in an occupied location)
Add a single bond between two atoms in the molecule
returns a happy string if the new bond was valid and recorded,
returns an error string if the new bond was invalid, (in an occupied location)
Add a single bond between two atoms in the molecule returns a happy string if the new bond was valid and recorded returns an error string if the new bond was invalid ( in an occupied location )
pub fn add_bond(&mut self, x : usize, y : usize, z : i32) {
        if self.matrix.get(x as usize, y as usize) != 0 {
            panic!("{}", "bond has already been set!")
        } else {
            self.matrix.set(x, y, z);
        }
    }
pub fn add_bond ( & mut self , x : usize , y : usize , z : i32 ) { if self . matrix . get ( x as usize , y as usize ) != 0 { panic ! ( " " " " ) } else { self . matrix . set ( x , y , z ) ; } }
Add a single bond between two atoms in the molecule
returns a happy string if the new bond was valid and recorded,
returns an error string if the new bond was invalid, (in an occupied location)
Add a single bond between two atoms in the molecule returns a happy string if the new bond was valid and recorded returns an error string if the new bond was invalid ( in an occupied location )
&mut self
x
usize
y
usize
z
i32
&mut self
x
usize
y
usize
z
i32