Expand description
Read-only access into HUGR graphs and subgraphs.
Re-exports§
pub use self::petgraph::PetgraphWrapper;
pub use sibling_subgraph::SiblingSubgraph;
Modules§
- petgraph
- Implementations of petgraph’s traits for Hugr Region views.
- render
- Helper methods to compute the node/edge/port style when rendering a HUGR into dot or mermaid format.
- sibling_
subgraph - Views for HUGR sibling subgraphs.
Structs§
- Rerooted
- A HUGR wrapper with a modified entrypoint node.
- Root
Checked - A wrapper over a Hugr that ensures the entrypoint optype is of the required
OpTag
.
Enums§
- Invalid
Signature - Errors that can occur when mapping the I/O of a DFG.
Traits§
- Extraction
Result - Records the result of extracting a Hugr via
HugrView::extract_hugr
. - Hugr
View - A trait for inspecting HUGRs. For end users we intend this to be superseded by region-specific APIs.
- Nodes
Iter - Iterate over nodes within a graph view (Hugr, SiblingSubgraph, etc).
- Port
Iterator - Trait implementing methods on port iterators.
- Root
Checkable - A trait for types that can be checked for a specific
OpTag
at their entrypoint node.
Functions§
- check_
tag - Check that the node in a HUGR can be represented by the required tag.