}
long lastScore = -1;
for(StatePair elem:pairs)
{
doneEdges = new HashSet<DirectedSparseEdge>();
DeterministicVertex origBlue = DeterministicDirectedSparseGraph.findVertexNamed(elem.getQ(), g);
DeterministicVertex origRed = DeterministicDirectedSparseGraph.findVertexNamed(elem.getR(), g);
long currentScore = computeScore(g, new OrigStatePair(origBlue,origRed));// This one returns vertices from g, but elem may easily contain StringVertices and such, hence convert elem to Vertex-pair.
PairScore elA = constructPairScore(elem.getQ().getStringId(),elem.getR().getStringId(),currentScore, testConfig);
PairScore elB = constructPairScore(elem.getR().getStringId(),elem.getQ().getStringId(),currentScore, testConfig);
Assert.assertTrue(elem.getR().getColour() == JUConstants.RED);
Assert.assertTrue(elem.getQ().getColour() == JUConstants.BLUE);