![]() |
(git:51bfb72)
|
uses a combination of graphs and hashing to determine if two molecules are topologically equivalent, and if so, finds the one by one mapping More...
Data Types | |
| type | graph_type |
| type | vertex |
Functions/Subroutines | |
| subroutine, public | hash_molecule (reference, kind_ref, hash) |
| hashes a molecule to a number. Molecules that are the (topologically) the same have the same hash. However, there is a small chance that molecules with the same hash are different | |
| subroutine, public | reorder_graph (reference, unordered, order, matches) |
| If two molecules are topologically the same, finds the ordering that maps the unordered one on the ordered one. | |
uses a combination of graphs and hashing to determine if two molecules are topologically equivalent, and if so, finds the one by one mapping
| subroutine, public graphcon::hash_molecule | ( | type(vertex), dimension(:), intent(in) | reference, |
| integer, dimension(:), intent(out) | kind_ref, | ||
| integer, intent(out) | hash | ||
| ) |
hashes a molecule to a number. Molecules that are the (topologically) the same have the same hash. However, there is a small chance that molecules with the same hash are different
| reference | IN : molecule with atomic kinds and bonds |
| kind_ref | OUT : an atomic hash which is the same for topologically equivalent atoms |
| hash | OUT : a hash which is the same for topologically equivalent molecules |
Definition at line 79 of file graphcon.F.
| subroutine, public graphcon::reorder_graph | ( | type(vertex), dimension(:), intent(in) | reference, |
| type(vertex), dimension(:), intent(in) | unordered, | ||
| integer, dimension(:), intent(out) | order, | ||
| logical, intent(out) | matches | ||
| ) |
If two molecules are topologically the same, finds the ordering that maps the unordered one on the ordered one.
| reference | molecular description (see type definition) |
| unordered | molecular description (see type definition) |
| order | the mapping reference=order(unordred) if matches=.TRUE. undefined if matches=.FALSE. |
| matches | .TRUE. = the ordering was found |
Definition at line 133 of file graphcon.F.