You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been frustrated several times that, when adding a default node to a Topology, Topology.addNode(-1, -1) did not return the created Node so that I can use it afterwards.
The currently available methods forced me to first create the instance of Node myself, and then add it to the Topology.
Proposition
I suggest changing, at least, the prototype of void addNode(double x, double y) to Node addNode(double x, double y).
Note: other addNode() variants could also benefit from such modification.
The text was updated successfully, but these errors were encountered:
I have been frustrated several times that, when adding a default node to a
Topology
,Topology.addNode(-1, -1)
did not return the createdNode
so that I can use it afterwards.The currently available methods forced me to first create the instance of
Node
myself, and then add it to theTopology
.Proposition
I suggest changing, at least, the prototype of
void addNode(double x, double y)
toNode addNode(double x, double y)
.Note: other
addNode()
variants could also benefit from such modification.The text was updated successfully, but these errors were encountered: