Parity information in 0 Dimension¶
If the atomic coordinates are zero then the molecule's spatial dimension is zero. The parity information is stored in the atom flag of the stereocenter.
Setting parity information in 0 Dimension (API)¶
The parity information of a single atom can be modified using the setParity(int i, int p)method of MoleculeGraphclass. For setting parities of all atoms in the molecule, the setParity (int[] p) method of MoleculeGraphclass can be used. It is important to mention that, this method is faster than setting parities with setParity(int i, int p)one by one.
Examples:
Setting parity of one atom
Setting parity for all atoms
Getting parity information in 0 Dimension (API)¶
The parity information of a 0 dimensional molecule is stored in the atom flags . It can be retrieved with the getFlags() function of the MolAtom class or with the getParity(int i) method of the MoleculeGraph class.
Examples:
Using getFlags() method
Using getParity() method