for(Entry<Label,List<CmpVertex>> transition:entry.getValue().entrySet())
for(CmpVertex target:transition.getValue())
{
DeterministicVertex targetVertex = DeterministicDirectedSparseGraph.findVertexNamed(target,graphToUpdate);
if (targetVertex == null) targetVertex = addVertex(graphToUpdate, target);
DeterministicEdge e = pairsToNewEdges.get(new StatePair(from,target));
if (e == null)
{
e = new DeterministicEdge(fromVertex,targetVertex);
Set<Label> labels = new TreeSet<Label>();labels.add(transition.getKey());
e.addUserDatum(JUConstants.LABEL, labels, UserData.CLONE);e.addUserDatum(JUConstants.DIFF, color, UserData.SHARED);
graphToUpdate.addEdge(e);
pairsToNewEdges.put(new StatePair(from,target),e);
}
else
((Set<Label>)e.getUserDatum(JUConstants.LABEL)).add(transition.getKey());
Map<String,Color> targetToColour = lbl.get(transition.getKey());
if (targetToColour == null)
{// this is the first annotation for the specific target state