* @return true if any transitions have been added
*/
@SuppressWarnings("unchecked")
public static boolean completeGraph(DirectedSparseGraph g, String reject)
{
DirectedSparseVertex rejectVertex = new DirectedSparseVertex();
boolean transitionsToBeAdded = false;// whether and new transitions have to be added.
rejectVertex.addUserDatum(JUConstants.ACCEPTED, false, UserData.SHARED);
rejectVertex.addUserDatum(JUConstants.LABEL, reject, UserData.SHARED);
// first pass - computing an alphabet
Set<Label> alphabet = computeAlphabet(g);
// second pass - checking if any transitions need to be added.