Module hugr_core::hugr::views

source ·
Expand description

Read-only access into HUGR graphs and subgraphs.

Re-exports§

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 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§