Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Graph::withoutVertex() and Graph::withoutEdge() instead of destroy()
Destroying a Vertex or Edge will no longer leave an object in an invalid state but will instead return a new graph without the given entity. Also add Graph::withoutVertices() and Graph::withoutEdges() to remove multiple entities at once. Accordingly, Walk::isValid() has been removed as it would always return true.
- Loading branch information
Showing
8 changed files
with
220 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.