--- source: hydroflow/tests/surface_singleton.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(1..=10)"/]:::pullClass 2v1[\"(2v1) source_iter(3..=5)"/]:::pullClass 3v1[\"(3v1) map(Max::new)"/]:::pullClass 4v1[\"(4v1) lattice_reduce()"/]:::pullClass 5v1[/"(5v1) tee()"\]:::pushClass 6v1[\"(6v1) identity::<Max<_>>()"/]:::pullClass 7v1[\"(7v1) cross_join()"/]:::pullClass 8v1[\"(8v1) filter(|(value, max_of_stream2)| { value <= max_of_stream2.as_reveal_ref() })"/]:::pullClass 9v1[\"(9v1) map(|(x, _max)| (context.current_tick(), x))"/]:::pullClass 10v1[/"(10v1) for_each(|x| filter_send.send(x).unwrap())"\]:::pushClass 11v1[/"(11v1) map(|x: Max<_>| (context.current_tick(), x.into_reveal()))"\]:::pushClass 12v1[/"(12v1) for_each(|x| max_send.send(x).unwrap())"\]:::pushClass 13v1["(13v1) handoff"]:::otherClass 14v1["(14v1) handoff"]:::otherClass 2v1-->3v1 4v1-->5v1 3v1-->13v1 1v1-->|0|7v1 6v1-->|1|7v1 5v1-->14v1 9v1-->10v1 8v1-->9v1 7v1-->8v1 11v1-->12v1 5v1-->11v1 13v1-->4v1; linkStyle 11 stroke:#060 14v1-->6v1 subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 3v1 subgraph sg_1v1_var_stream2 ["var stream2"] 2v1 3v1 end end subgraph sg_2v1 ["sg_2v1 stratum 0"] 1v1 6v1 7v1 8v1 9v1 10v1 subgraph sg_2v1_var_filtered_stream2 ["var filtered_stream2"] 7v1 8v1 9v1 10v1 end subgraph sg_2v1_var_stream1 ["var stream1"] 1v1 end end subgraph sg_3v1 ["sg_3v1 stratum 0"] 4v1 5v1 11v1 12v1 subgraph sg_3v1_var_max_of_stream2 ["var max_of_stream2"] 4v1 5v1 end end