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,7 +509,9 @@ public class BasicDrawing extends JPanel implements Drawing {
this.initialize(graph);
for (Node node: graph.getNodes()) {
for (Arc arc: node.getSuccessors()) {
drawArc(arc, palette);
if (arc.getInfo().isOneWay() || arc.getOrigin().compareTo(arc.getDestination()) < 0) {
drawArc(arc, palette);
}
}
}
}