DirectedSparseGraph gr = DifferenceVisualiser.ChangesToGraph.computeVisualisationParameters(grAerlang, difference);
Map<String,String> edgeToColours = new TreeMap<String,String>();
for(Object edgeObj:gr.getEdges())
{
Edge edge = (Edge)edgeObj;
if (edge.containsUserDatumKey(JUConstants.DIFF))
edgeToColours.put(edge.toString(), edge.getUserDatum(JUConstants.DIFF).toString());
}
Assert.assertEquals("{P1000-[a]->P1000=java.awt.Color[r=255,g=0,b=0], P1000-[b]->P1002=java.awt.Color[r=255,g=0,b=0], P1000-[c]->N1000=java.awt.Color[r=255,g=0,b=0], P1001-[a]->P1000=java.awt.Color[r=0,g=255,b=0], P1001-[b]->P1003=java.awt.Color[r=0,g=255,b=0], P1001-[d]->P1001=java.awt.Color[r=0,g=255,b=0], P1002-[c, d]->P1002=java.awt.Color[r=255,g=0,b=0], P1003-[a, c]->P1001=java.awt.Color[r=0,g=255,b=0]}",
edgeToColours.toString());
}