Do not draw oneWay arc twice.
This commit is contained in:
parent
bcb9faa6b2
commit
03a26ab083
1 changed files with 3 additions and 1 deletions
|
@ -509,7 +509,9 @@ public class BasicDrawing extends JPanel implements Drawing {
|
||||||
this.initialize(graph);
|
this.initialize(graph);
|
||||||
for (Node node: graph.getNodes()) {
|
for (Node node: graph.getNodes()) {
|
||||||
for (Arc arc: node.getSuccessors()) {
|
for (Arc arc: node.getSuccessors()) {
|
||||||
drawArc(arc, palette);
|
if (arc.getInfo().isOneWay() || arc.getOrigin().compareTo(arc.getDestination()) < 0) {
|
||||||
|
drawArc(arc, palette);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue