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 vertex/edge from graph #68

Open
acbart opened this issue Apr 3, 2020 · 2 comments
Open

Remove vertex/edge from graph #68

acbart opened this issue Apr 3, 2020 · 2 comments
Assignees

Comments

@acbart
Copy link
Contributor

acbart commented Apr 3, 2020

I'm not sure I approve of this idea, but what about removing/deleting an edge or vertex from the graph? There doesn't seem to be a way to do it conveniently through the API.

I'm not sure it's a good idea to let students do this, but I know some graph algorithms that involve such manipulations. I'm fine telling my students to just avoid using that kind of approach, but I thought I should at least raise the issue.

@krs-world
Copy link
Contributor

krs-world commented Apr 3, 2020 via email

@acbart
Copy link
Contributor Author

acbart commented Apr 8, 2020

The particular algorithm was Khan's Algorithm for Topological sorting: https://en.wikipedia.org/wiki/Topological_sorting#Kahn's_algorithm

It apparently allows you to break ties more consistently.

@AlecGoncharow AlecGoncharow self-assigned this Apr 10, 2020
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