HugrView::extract_hugr
to extract views into owned hugrs.
#1171
Labels
enhancement
New feature or request
HugrView::extract_hugr
to extract views into owned hugrs.
#1171
Add a utility method to extract regions of a Hugr.
We currently have
SiblingSubgraph::extract_subgraph
for subgraphs, this should be the full-region equivalent.This can then be used when an owned Hugr is expected, such as for the target of
SimpleReplacement
/Replacement
.The text was updated successfully, but these errors were encountered: