Expand description
Read-only access into HUGR graphs and subgraphs.
Re-exports§
pub use self::petgraph::PetgraphWrapper;
pub use descendants::DescendantsGraph;
pub use sibling::SiblingGraph;
pub use sibling_subgraph::SiblingSubgraph;
Modules§
- DescendantsGraph: view onto the subgraph of the HUGR starting from a root (all descendants at all depths).
- Implementations of petgraph’s traits for Hugr Region views.
- Helper methods to compute the node/edge/port style when rendering a HUGR into dot or mermaid format.
- SiblingGraph: view onto a sibling subgraph of the HUGR.
- Views for HUGR sibling subgraphs.
Structs§
- A view of the whole Hugr. (Just provides static checking of the type of the root node)
Traits§
- A trait for
HugrView
s that can be extracted into a valid HUGR containing only the nodes and edges of the view. - A common trait for views of a HUGR hierarchical subgraph.
- A trait for inspecting HUGRs. For end users we intend this to be superseded by region-specific APIs.
- Trait implementing methods on port iterators.
- Trait for views that provides a guaranteed bound on the type of the root node.
Type Aliases§
- Wraps an iterator over Ports that are known to be IncomingPorts
- Wraps an iterator over Ports that are known to be OutgoingPorts