-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds
LigandNetwork.reduce_graph
(#320)
* adds LigandNetwork.remove_edges * Update ligandnetwork.py Co-authored-by: Benjamin Ries <[email protected]> * Fix broken ligandnetwork module * Rework LigandNetwork.remove_edges into .reduce_graph To create the inverse method of `enlarge_graph`, created `reduce_graph`. This new method gives a superset of the functionality proposed in `remove_edges`. Also made a bunch of consistency edits to docstrings while I was at it. * Added enlarge->reduce test. * Renamed news entry Not strictly necessary, but for consistency * Type annotation fixes * Apply suggestions from code review Committing suggestions from @atravitz. Co-authored-by: Alyssa Travitz <[email protected]> * reduce_graph -> trim_graph * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Benjamin Ries <[email protected]> Co-authored-by: Alyssa Travitz <[email protected]> Co-authored-by: David Dotson <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
703f151
commit 21b1382
Showing
3 changed files
with
186 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
**Added:** | ||
|
||
* added LigandNetwork.trim_graph | ||
|
||
**Changed:** | ||
|
||
* <news item> | ||
|
||
**Deprecated:** | ||
|
||
* <news item> | ||
|
||
**Removed:** | ||
|
||
* <news item> | ||
|
||
**Fixed:** | ||
|
||
* <news item> | ||
|
||
**Security:** | ||
|
||
* <news item> |