{
// Turn the set into a list so we can append the repeating node.
List<V> orderedNodes = new ArrayList<V>(currentStackVisitedNodes.size() + 1);
orderedNodes.addAll(currentStackVisitedNodes);
orderedNodes.add(referencedVertex);
throw new CircularDependencyException(orderedNodes);
}
referencedTopologicalVertices.add(referencedVertex);
}
else