Menu

#6 addEdge in VisibleLocality

open
nobody
None
5
2003-12-01
2003-12-01
No

addEdge in VisibleLocality does not make the edge
visible:

public void addEdge( Edge edge ) {
if(!contains(edge)) {
super.addEdge(edge);
edge.from.visibleEdgeCnt++;
edge.to.visibleEdgeCnt++;
}
}

An extra line, edge.setVisible(true); is required after
super.addEdge(edge).

I am pretty sure that this is a bug, as the class
description states that edges and nodes are made
visible when added and that the visibility is set to false
when they are removed. The removeEdge, addNode,
removeNode all do this, yet addEdge doesn't.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB