---
source: hydroflow/tests/surface_join_fused.rs
expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())"
---
%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%%
flowchart TD
classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre
classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre
classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre
linkStyle default stroke:#aaa
1v1[\"(1v1) source_iter([(7, 1), (7, 2)])
"/]:::pullClass
2v1[\"(2v1) map(|(k, v)| (k, SetUnionSingletonSet::new_from(v)))
"/]:::pullClass
3v1[\"(3v1) source_iter([(7, 0)])
"/]:::pullClass
4v1[\"(4v1) source_iter([(7, 1)])
"/]:::pullClass
5v1[\"(5v1) defer_tick()
"/]:::pullClass
6v1[\"(6v1) source_iter([(7, 2)])
"/]:::pullClass
7v1[\"(7v1) defer_tick()
"/]:::pullClass
8v1[\"(8v1) defer_tick()
"/]:::pullClass
9v1[\"(9v1) union()
"/]:::pullClass
10v1[\"
join_fused(
Fold(SetUnionHashSet::default, Merge::merge),
Reduce(std::ops::AddAssign::add_assign),
)
"/]:::pullClass
11v1[/"for_each(|x| {
results_inner.borrow_mut().entry(context.current_tick()).or_default().push(x)
})
"\]:::pushClass
12v1["(12v1) handoff
"]:::otherClass
13v1["(13v1) handoff
"]:::otherClass
14v1["(14v1) handoff
"]:::otherClass
15v1["(15v1) handoff
"]:::otherClass
16v1["(16v1) handoff
"]:::otherClass
17v1[\"(17v1) identity()
"/]:::pullClass
18v1["(18v1) handoff
"]:::otherClass
19v1[\"(19v1) identity()
"/]:::pullClass
20v1["(20v1) handoff
"]:::otherClass
21v1[\"(21v1) identity()
"/]:::pullClass
22v1["(22v1) handoff
"]:::otherClass
2v1-->12v1
1v1-->2v1
3v1-->9v1
5v1-->9v1
4v1-->13v1
8v1-->9v1
7v1-->14v1
6v1-->15v1
9v1-->16v1
10v1-->11v1
12v1--x|0|10v1; linkStyle 10 stroke:red
13v1-->17v1
14v1-->19v1
15v1-->21v1
16v1--x|1|10v1; linkStyle 14 stroke:red
17v1-->18v1
18v1--o5v1; linkStyle 16 stroke:red
19v1-->20v1
20v1--o8v1; linkStyle 18 stroke:red
21v1-->22v1
22v1--o7v1; linkStyle 20 stroke:red
subgraph sg_1v1 ["sg_1v1 stratum 0"]
1v1
2v1
end
subgraph sg_2v1 ["sg_2v1 stratum 0"]
4v1
end
subgraph sg_3v1 ["sg_3v1 stratum 0"]
6v1
end
subgraph sg_4v1 ["sg_4v1 stratum 0"]
7v1
end
subgraph sg_5v1 ["sg_5v1 stratum 0"]
3v1
5v1
8v1
9v1
subgraph sg_5v1_var_unioner ["var unioner"]
9v1
end
end
subgraph sg_6v1 ["sg_6v1 stratum 1"]
10v1
11v1
subgraph sg_6v1_var_my_join ["var my_join"]
10v1
11v1
end
end
subgraph sg_7v1 ["sg_7v1 stratum 2"]
17v1
end
subgraph sg_8v1 ["sg_8v1 stratum 2"]
19v1
end
subgraph sg_9v1 ["sg_9v1 stratum 2"]
21v1
end