Expand description
Graph representation stages for Hydroflow graphs.
Modules§
- General graph algorithm utility functions
- Hydroflow’s operators
Structs§
- An abstract “meta graph” representation of a Hydroflow graph.
- A directed multigraph where an vertex’s inbound and outbound edges are indexed.
- Wraper around
DfirGraphto build a flat graph from AST code. - ID to identify an edge.
- ID to identify a loop block in
DfirGraph. - ID to identify a node (operator or handoff) in
DfirGraph. - ID to identify a subgraph in
DfirGraph. - Operator generic arguments, split into specific categories.
- Meta-data relating to operators which may be useful throughout the compilation process.
- Configuration for writing graphs.
Enums§
- Push, Pull, Comp, or Hoff polarity.
- A node, corresponding to an operator or a handoff.
- Helper struct for
PortIndexwhich keeps span information for elided ports. - Enum for choosing between mermaid and dot graph writing.
Functions§
- The main function of this module. Compiles a
HfCodeAST into aDfirGraphand source code, orDiagnosticerrors. - Removes missing unions and tees. Must be applied BEFORE subgraph partitioning, i.e. on a flat graph.
- Gets the generic arguments for the operator.
- Main method for this module. Partions a flat
DfirGraphinto one with subgraphs.