Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topology.addNode() could return the added Node #95

Open
remikey opened this issue Feb 3, 2020 · 0 comments
Open

Topology.addNode() could return the added Node #95

remikey opened this issue Feb 3, 2020 · 0 comments
Milestone

Comments

@remikey
Copy link
Member

remikey commented Feb 3, 2020

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.

@remikey remikey added this to the ??? milestone Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant