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

Remove nodes from graphs? #128

Open
squeetus opened this issue Jan 3, 2019 · 5 comments
Open

Remove nodes from graphs? #128

squeetus opened this issue Jan 3, 2019 · 5 comments

Comments

@squeetus
Copy link
Contributor

squeetus commented Jan 3, 2019

Is there a mechanism for removing graph nodes in Bridges?

I tried the following, which seems to remove the node from the graph, but causes a null pointer exception when I subsequently call Bridges.visualize();

g.getVertices().remove("node10");

@krs-world
Copy link
Contributor

krs-world commented Jan 4, 2019 via email

@esaule
Copy link
Member

esaule commented Jan 4, 2019

That could be a useful feature. But maybe more of a future development. Or do we need this for something?

@krs-world
Copy link
Contributor

krs-world commented Jan 4, 2019 via email

@squeetus
Copy link
Contributor Author

squeetus commented Jan 4, 2019

This is not critical, we can discuss approaches later.

@krs-world
Copy link
Contributor

Would algorithms courses require restructuring graphs, requiring node deletion? Would require some work, but this is the time to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants