class MmffAromaticTypeMapping {

    static boolean normaliseCycle(int[] cycle, int[] contribution) {
        int offset = indexOfHetro(cycle, contribution);
        if (offset < 0) return false;
        if (offset == 0) return true;
        int[] cpy = Arrays.copyOf(cycle, cycle.length);
        int len = cycle.length - 1;
        for (int j = 0; j < len; j++) {
            cycle[j] = cpy[(offset + j) % len];
        }
        cycle[len] = cycle[0]; // make closed walk
        return true;
    }

      MmffAromaticTypeMapping();

}