Do not draw oneWay arc twice.
This commit is contained in:
parent
bcb9faa6b2
commit
03a26ab083
@ -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 New Issue
Block a user