-
Notifications
You must be signed in to change notification settings - Fork 13
feat: Reimplement insert_hugr using only HugrView
#2174
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2174 +/- ##
=======================================
Coverage 82.09% 82.10%
=======================================
Files 227 227
Lines 39801 39786 -15
Branches 35900 35885 -15
=======================================
- Hits 32676 32666 -10
+ Misses 5303 5299 -4
+ Partials 1822 1821 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Oh, I should also have done Edit: Done! |
hugr-core/src/hugr/hugrmut.rs
Outdated
| other: &H, | ||
| ) -> InsertionResult<H::Node, Self::Node> { | ||
| let (inserted_entrypoint, node_map) = insert_hugr_internal(self, root, other); | ||
| let res = insert_hugr_internal(self, root, &other); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| let res = insert_hugr_internal(self, root, &other); | |
| let res = insert_hugr_internal(self, root, other); |
lmondada
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! I'll wait for the impl for insert_subgraph
Removes another use of
HugrInternals::portgraph