Do not draw oneWay arc twice.
This commit is contained in:
parent
bcb9faa6b2
commit
03a26ab083
@ -509,10 +509,12 @@ 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()) {
|
||||||
|
if (arc.getInfo().isOneWay() || arc.getOrigin().compareTo(arc.getDestination()) < 0) {
|
||||||
drawArc(arc, palette);
|
drawArc(arc, palette);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawGraph(Graph graph) {
|
public void drawGraph(Graph graph) {
|
||||||
|
Loading…
Reference in New Issue
Block a user