/** * Calculates priority for atoms in a molecule. * * @param mol connected molecule * @param adjList fast adjacency lookup * @see #PRIORITY */ static void prioritise(IAtomContainer mol, int[][] adjList) { int[] weights = getPriority(mol, adjList); for (int i = 0; i < mol.getAtomCount(); i++) { mol.getAtom(i).setProperty(PRIORITY, weights[i]); } }
/** * Calculates priority for atoms in a molecule. * * @param mol connected molecule * @param adjList fast adjacency lookup * @see #PRIORITY */ static void prioritise(IAtomContainer mol, int[][] adjList) { int[] weights = getPriority(mol, adjList); for (int i = 0; i < mol.getAtomCount(); i++) { mol.getAtom(i).setProperty(PRIORITY, weights[i]); } }