Skip to content
Snippets Groups Projects

Fix typo, improve debuggung

Merged Enna Gerhard requested to merge mce into main
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -171,10 +171,10 @@ public class BasicDirectedGraph implements DirectedGraph<Vertex> {
@Override
public DirectedEdge addEdge(final Vertex start, final Vertex end) {
if (!vertexMap.containsKey(start.getId())) {
throw new IllegalArgumentException(start + " is not in the Graph");
throw new IllegalArgumentException(start + " (start) is not in the Graph");
}
if (!vertexMap.containsKey(end.getId())) {
throw new IllegalArgumentException(end + " is not in the Graph");
throw new IllegalArgumentException(end + " (end) is not in the Graph");
}
DirectedEdge edge = new BasicDirectedEdge(start, end);
edgesSet.add(edge);
Loading