Do not draw oneWay arc twice.

This commit is contained in:
Holt59 2018-02-28 20:57:52 +01:00
parent bcb9faa6b2
commit 03a26ab083

View file

@ -509,10 +509,12 @@ public class BasicDrawing extends JPanel implements Drawing {
this.initialize(graph);
for (Node node: graph.getNodes()) {
for (Arc arc: node.getSuccessors()) {
if (arc.getInfo().isOneWay() || arc.getOrigin().compareTo(arc.getDestination()) < 0) {
drawArc(arc, palette);
}
}
}
}
@Override
public void drawGraph(Graph graph) {