class BondRefinable implements Refinable {

    @Override
    public Invariant neighboursInBlock(Set<Integer> block, int vertexIndex) {
        int neighbours = 0;
        for (int connected : getConnectedIndices(vertexIndex)) {
            if (block.contains(connected)) {
                neighbours++;
            }
        }
        return new IntegerInvariant(neighbours);
    }

    public  BondRefinable(IAtomContainer atomContainer);
    public  BondRefinable(IAtomContainer atomContainer, boolean ignoreBondOrders);

}