Molecular target
All-pairs-shortest-path (APSP) distance
Assign extended types to each atom (element plus bond pattern)
Find shortest path between each pair of atoms
Create bag where each element is the extended types and length of each shortest path
Tanimoto distance between bags