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,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) {
|
||||
|
|
Loading…
Reference in a new issue