AbstractDiscretePartitionRefiner implements DiscretePartitionRefiner { protected abstract int getConnectivity(int vertexI, int vertexJ); AbstractDiscretePartitionRefiner(); void setup(PermutationGroup group, EquitablePartitionRefiner refiner); boolean firstIsIdentity(); Partition getAutomorphismPartition(); String getFirstHalfMatrixString(); String getHalfMatrixString(); PermutationGroup getAutomorphismGroup(); Permutation getBest(); Permutation getFirst(); boolean isCanonical(); void refine(Partition partition);  }
@Test public void getConnectivityTest() { int n = 3; Graph g = new Graph(n); g.connectionTable = new int[][]{{0, 1, 0}, {1, 0, 1}, {0, 1, 0}}; MockRefiner refiner = new MockRefiner(g); Assert.assertEquals(1, refiner.getConnectivity(0, 1)); }