Compute the shortest cycles through each vertex triple. This allows one to
directly obtain the envelope rings of bicyclic fused system. These cycles
can be thought of as the 'ESSSR' (extended smallest set of smallest rings)
and 'envelope' rings as used by PubChem fingerprints (CACTVS Substructure
Keys). The PubChem fingerprint documentation exclusively refers to the ESSSR
and envelopes as just the ESSSR and the rest of this documentation does the
same. This class provides the cycles (vertex paths) for each ring in the
ESSSR.
The ESSSR should not be confused with the extended set of smallest rings
(ESSR) (
).
To our knowledge no algorithm has been published for
the ESSSR. The
. The name implies the use of the smallest set of smallest rings
(SSSR). Not every graph has an SSSR and so the minimum cycle basis is used
instead. With this modification the algorithm is outlined below.
the
minimum cycle basis is the two phenyl rings. Taking either bridgehead atom of
The algorithm can generate a canonical or non-canonical (preferred) set of
cycles. As one can see from the above description depending on the order we
check each triple (-u-v-w-) and add it to basis we may end up with a
different set.
To avoid this PubChem fingerprints uses a canonical labelling ensuring the
vertices are always checked in the same order. The vertex order used by this
class is the natural order of the vertices as provided in the graph. To
ensure the generated set is always the same vertices should be ordered
beforehand or the non-canonical option should be used.
Although this canonical sorting allows one to reliable generate the same set
of cycles for a graph this is not true for subgraphs. For two graphs
). If
. It follows
that
. In other words, we can canonically label a graph and inspect the
ordering of vertices
. We now take a subgraph which
contains both
- the ordering does not need to be the
same as the full graph. This means that a subgraph may contain a ring in its
ESSSR which does not belong to the ESSSR of the full graph.
To resolve this problem you can turn off the
option. This
relaxes the existing condition (Step 2.) and adds all shortest cycles through
each triple (-u-v-w-) to the basis. The number of cycles generated may be
larger however it is now possible to ensure that if
defined for a
graph.
To better explain the issue with the canonical labelling several examples are
shown below. The table outlining the size of rings found for each molecule
when using canonical and non-canonical generation. Also shown are the sizes
of rings stored in the PubChem fingerprint associated with the entry. The
fingerprints were obtained directly from PubChem and decoded using the
. Sizes underlined and coloured red represent rings which may
or may not be present depending on the atom ordering. It can be seen from the
PubChem fingerprint that even using a consistent canonical labelling rings
may be absent which would be present if the subgraph was used.
PubChem CID | Diagram | Size of Rings in
ESSSR (fingerprints only store cycles |C| <=
10) | Source |
CID 135973 |
 |
{3, 3, 4} |
{3, 3, 4} |
{3, 3, 4} |
|
Canonical |
Non-canonical |
PubChem Fingerprint |
|
CID 9249 |
 |
{3, 3, 4, 6, 6} |
{3, 3, 4, 6, 6} |
{3, 3, 6, 6} |
|
Canonical - 4 member cycle only added if found before larger 6
member cycles |
Non-canonical |
PubChem Fingerprint - 4 member cycle not found |
|
CID 931 |
 |
{6, 6, 10} |
{6, 6, 10} |
{6, 6, 10} |
|
Canonical |
Non-canonical |
PubChem Fingerprint |
|
CID 5702 |
 |
{6, 6, 6, 6, 10, 10, 20, 22, 22, 24, 24} |
{6, 6, 6, 6, 10, 10, 20, 22, 22, 24, 24} |
{6, 6, 6, 6} |
|
Canonical - 10 member cycles only added if found before larger
cycles |
Non-canonical |
PubChem Fingerprint - 10 member cycles not found |
|
CID 1211 |
 |
{6, 6, 6, 6, 6, 6, 10, 10, 18, 18, 20, 20, 22, 22, 22} |
{6, 6, 6, 6, 6, 6, 10, 10, 18, 18, 20, 20, 22, 22, 22} |
{6, 6, 6, 6, 6, 6, 10, 10} |
|
Canonical - 10 member cycles only added if found before larger
cycles |
Non-canonical |
PubChem Fingerprint - 10 member cycles were found |
|
CID 17858819 |
 |
{5, 6, 9} |
{5, 6, 9} |
{5, 6, 9} |
|
Canonical |
Non-canonical |
PubChem Fingerprint |
|
CID 1909 |
 |
{5, 5, 5, 6, 9, 16, 17, 17,
17,
18} |
{5, 5, 5, 6, 9, 16, 17, 17, 17, 18} |
{5, 5, 5, 6} |
|
Canonical - 9 member cycle only added if found before larger
cycles |
Non-canonical |
PubChem Fingerprint - 9 member cycle not found |
|