19package denoptim.utils;
21import java.util.Comparator;
53 massA = a.
getAtom().getAtomicNumber();
63 massB = b.
getAtom().getAtomicNumber();
69 return Integer.compare(massB, massA);
Compare two ConnectedLigand according to the number of connected atoms and the mass number.
int compare(ConnectedLigand a, ConnectedLigand b)
A ConnectedLigand is just an atom with an explicit field reporting the number of connected atoms.