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

Add :drop-edge and :drop-node methods for digraphs #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

CFiggers
Copy link
Contributor

@CFiggers CFiggers commented Jul 9, 2024

It seems like sometimes one might need to remove nodes and edges from a digraph as well as adding them. These new methods accomplish that (while also, in the case of :drop-node, doing cleanup on other nodes' edges to remove any that once pointed to the now-nonexistent node).

All tests pass, including four new suites covering the new features. Also expanded the example file to include :drop-edge and :drop-node.

@AlecTroemel
Copy link
Owner

thank you for the PR! I'll try and get this merged later today

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

Successfully merging this pull request may close these issues.

2 participants