Module render

Module render 

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

HydroGraphEdge
Edge information in the Hydro graph.
HydroGraphNode
Node information in the Hydro graph.
HydroGraphStructure
Graph structure tracker for Hydro IR rendering.
HydroWriteConfig
Configuration for graph writing.
IndentedGraphWriter
Base struct for text-based graph writers that use indentation. Contains common fields shared by DOT and Mermaid writers.
UnifiedEdgeStyle
Unified edge style representation for all graph formats. This intermediate format allows consistent styling across JSON, DOT, and Mermaid.

Enums§

AnimationStyle
ArrowheadStyle
HaloStyle
HydroEdgeProp
Types of edges in Hydro IR representing stream properties.
HydroNodeType
Types of nodes in Hydro IR for styling purposes.
LinePattern
LineStyle
NodeLabel
Label for a graph node - can be either a static string or contain expressions.
WavinessStyle

Traits§

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

GraphWriteError
Common error type used by all graph writers.