Bond¶
-
class
Bond(atom1_id, atom2_id, order)[source]¶ Bases:
objectA bond of a
Molecule.Parameters: - atom1_id (
int) – The id of the first atom of the bond. - atom1_id – The id of the second atom of the bond.
- order (
int) – The order of the bond.
Methods
get_atom1_id(self)Return the id of the first atom of the bond. get_atom2_id(self)Return the id of the second atom of the bond. get_atom_ids(self)Yield the ids of the atoms of the bond. get_order(self)Return the bond order. -
get_atom1_id(self)[source]¶ Return the id of the first atom of the bond.
Returns: The id of the first atom of the bond. Return type: int
- atom1_id (