-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPDATE: add new methods to remove node with/without its leaves
In `objects.NodeCollection` class, method `remove_node_and_its_leaves()` is added for removing a node and all its leaf nodes. And in `object.Node` class, method `remove_all_leaves()` is added for removing all links of leaf nodes from specific node. With these new methods, user now can choose to remove all leaf nodes or not when they are going to remove a node. So that users won't need to remove those leaf nodes one by one manually.
- Loading branch information
1 parent
16b4d01
commit 2472cec
Showing
3 changed files
with
199 additions
and
8 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