else
if (Boolean.valueOf(toVertex.getUserDatum(JUConstants.ACCEPTED).toString()) != accept)
throw new IllegalArgumentException("conflicting acceptance assignment on vertex "+to);
StatePair pair = new StatePair(fromVertex,toVertex);
DeterministicEdge edge = existingEdges.get(pair);
if (edge == null)
{
edge = new DeterministicDirectedSparseGraph.DeterministicEdge(fromVertex,toVertex);
edge.addUserDatum(JUConstants.LABEL, new HashSet<String>(), UserData.CLONE);
g.addEdge(edge);existingEdges.put(pair,edge);
}
Set<String> labels = (Set<String>)edge.getUserDatum(JUConstants.LABEL);
labels.add(label);
}
public void accept(String from, String to, String label) {
put(from,to,label,true);