Module views

Module views 

Source
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.
RootChecked
A wrapper over a Hugr that ensures the entrypoint optype is of the required OpTag.

Enums§

InvalidSignature
Errors that can occur when mapping the I/O of a DFG.

Traits§

ExtractionResult
Records the result of extracting a Hugr via HugrView::extract_hugr.
HugrView
A trait for inspecting HUGRs. For end users we intend this to be superseded by region-specific APIs.
NodesIter
Iterate over nodes within a graph view (Hugr, SiblingSubgraph, etc).
PortIterator
Trait implementing methods on port iterators.
RootCheckable
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.