--- source: hydroflow/tests/surface_codegen.rs expression: "hydroflow.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_stream(contacts_recv)"/]:::pullClass 2v1[\"(2v1) flat_map(|(pid_a, pid_b, time)| [(pid_a, (pid_b, time)), (pid_b, (pid_a, time))])"/]:::pullClass 3v1[\"(3v1) union()"/]:::pullClass 4v1[\"(4v1) source_stream(diagnosed_recv)"/]:::pullClass 5v1[\"(5v1) join::<'static>()"/]:::pullClass 6v1[\"
(6v1)
filter(|(_pid_a, ((_pid_b, t_contact), (t_from, t_to)))| {
(t_from..=t_to).contains(&t_contact)
})
"/]:::pullClass 7v1[\"(7v1) map(|(_pid_a, (pid_b_t_contact, _t_from_to))| pid_b_t_contact)"/]:::pullClass 8v1[/"(8v1) tee()"\]:::pushClass 9v1[\"(9v1) map(|(pid, t)| (pid, (t, t + TRANSMISSIBLE_DURATION)))"/]:::pullClass 10v1[\"(10v1) join::<'static>()"/]:::pullClass 11v1[\"
(11v1)
map(|(_pid, ((name, phone), exposure))| {
format!("[{}] To {}: Possible Exposure at t = {}", name, phone, exposure)
})
"/]:::pullClass 12v1[/"(12v1) tee()"\]:::pushClass 13v1[/"(13v1) for_each(|msg| println!("{}", msg))"\]:::pushClass 14v1[/"(14v1) for_each(|msg| out_send.send(msg).unwrap())"\]:::pushClass 15v1[\"(15v1) source_stream(people_recv)"/]:::pullClass 16v1["(16v1) handoff"]:::otherClass 17v1["(17v1) handoff"]:::otherClass 1v1-->2v1 4v1-->|0|3v1 7v1-->8v1 6v1-->7v1 5v1-->6v1 2v1-->|0|5v1 3v1-->|1|5v1 9v1-->|1|3v1 8v1-->|0|16v1 11v1-->12v1 10v1-->11v1 12v1-->13v1 12v1-->14v1 15v1-->|0|10v1 8v1-->|1|17v1 16v1-->9v1 17v1-->|1|10v1 subgraph sg_1v1 ["sg_1v1 stratum 0"] 16v1 1v1 2v1 4v1 9v1 3v1 5v1 6v1 7v1 8v1 subgraph sg_1v1_var_contacts ["var contacts"] 1v1 2v1 end subgraph sg_1v1_var_exposed ["var exposed"] 3v1 end subgraph sg_1v1_var_new_exposed ["var new_exposed"] 5v1 6v1 7v1 8v1 end end subgraph sg_2v1 ["sg_2v1 stratum 0"] 15v1 10v1 11v1 12v1 13v1 14v1 subgraph sg_2v1_var_notifs ["var notifs"] 10v1 11v1 12v1 end end