Available on crate feature
viz only.Re-exports§
pub use super::graphviz::HydroDot;pub use super::graphviz::escape_dot;pub use super::json::HydroJson;pub use super::mermaid::HydroMermaid;pub use super::mermaid::escape_mermaid;
Modules§
- node_
type_ utils - Node type utilities - centralized handling of HydroNodeType operations
Structs§
- Hydro
Graph Edge - Edge information in the Hydro graph.
- Hydro
Graph Node - Node information in the Hydro graph.
- Hydro
Graph Structure - Graph structure tracker for Hydro IR rendering.
- Hydro
Write Config - Configuration for graph writing.
- Indented
Graph Writer - Base struct for text-based graph writers that use indentation. Contains common fields shared by DOT and Mermaid writers.
- Unified
Edge Style - Unified edge style representation for all graph formats. This intermediate format allows consistent styling across JSON, DOT, and Mermaid.
Enums§
- Animation
Style - Arrowhead
Style - Halo
Style - Hydro
Edge Prop - Types of edges in Hydro IR representing stream properties.
- Hydro
Node Type - Types of nodes in Hydro IR for styling purposes.
- Line
Pattern - Line
Style - Node
Label - Label for a graph node - can be either a static string or contain expressions.
- Waviness
Style
Traits§
- Hydro
Graph Write - Trait for writing textual representations of Hydro IR graphs, i.e. mermaid or dot graphs.
Functions§
- add_
network_ edge_ tag - Add network edge tag if source and destination locations differ.
- extract_
edge_ properties_ from_ collection_ kind - Extract semantic edge properties from CollectionKind metadata. This function analyzes the collection type and extracts relevant semantic tags for visualization purposes.
- extract_
op_ name - Function to extract an op_name from a print_root() result for use in labels.
- extract_
short_ label - Extract a short, readable label from the full token stream label using print_root() style naming
- get_
unified_ edge_ style - Convert HydroEdgeType properties to unified edge style. This is the core logic for determining edge visual properties.
- is_
network_ edge - Detect if an edge crosses network boundaries by comparing source and destination locations. Returns true if the edge represents network communication between different locations.
- render_
hydro_ ir_ dot - render_
hydro_ ir_ hydroscope - render_
hydro_ ir_ json - render_
hydro_ ir_ mermaid - write_
hydro_ ir_ dot - write_
hydro_ ir_ json - write_
hydro_ ir_ mermaid
Type Aliases§
- Graph
Write Error - Common error type used by all graph writers.