---
source: hydroflow/tests/surface_examples.rs
expression: output
---
%%{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(vec![0])
"/]:::pullClass
2v1[\"(2v1) source_stream(pairs_recv)
"/]:::pullClass
3v1[/"(3v1) tee()
"\]:::pushClass
4v1[\"(4v1) map(|v| (v, ()))
"/]:::pullClass
5v1[\"(5v1) join()
"/]:::pullClass
6v1[\"(6v1) flat_map(|(src, ((), dst))| [src, dst])
"/]:::pullClass
7v1[\"(7v1) union()
"/]:::pullClass
8v1[/"(8v1) tee()
"\]:::pushClass
9v1[/"(9v1) flat_map(|(src, dst)| [src, dst])
"\]:::pushClass
10v1[/"(10v1) tee()
"\]:::pushClass
11v1[\"(11v1) difference()
"/]:::pullClass
12v1[/"(12v1) unique()
"\]:::pushClass
13v1[/"(13v1) for_each(|v| println!("Received vertex: {}", v))
"\]:::pushClass
14v1[/"(14v1) for_each(|v| println!("unreached_vertices vertex: {}", v))
"\]:::pushClass
15v1["(15v1) handoff
"]:::otherClass
16v1["(16v1) handoff
"]:::otherClass
17v1["(17v1) handoff
"]:::otherClass
18v1["(18v1) handoff
"]:::otherClass
2v1-->3v1
4v1-->|0|5v1
8v1-->|0|15v1
3v1-->|1|16v1
5v1-->6v1
1v1-->|base|7v1
6v1-->|cycle|7v1
7v1-->8v1
9v1-->10v1
3v1-->|0|9v1
10v1-->|0|17v1
8v1-->|1|18v1
12v1-->13v1
10v1-->|1|12v1
11v1-->14v1
15v1-->4v1
16v1-->|1|5v1
17v1-->|pos|11v1
18v1--x|neg|11v1; linkStyle 18 stroke:red
subgraph sg_1v1 ["sg_1v1 stratum 0"]
15v1
1v1
4v1
5v1
6v1
7v1
8v1
subgraph sg_1v1_var_my_join ["var my_join"]
5v1
6v1
end
subgraph sg_1v1_var_origin ["var origin"]
1v1
end
subgraph sg_1v1_var_reached_vertices ["var reached_vertices"]
7v1
8v1
end
end
subgraph sg_2v1 ["sg_2v1 stratum 0"]
2v1
3v1
9v1
10v1
12v1
13v1
subgraph sg_2v1_var_all_vertices ["var all_vertices"]
9v1
10v1
end
subgraph sg_2v1_var_stream_of_edges ["var stream_of_edges"]
2v1
3v1
end
end
subgraph sg_3v1 ["sg_3v1 stratum 1"]
11v1
14v1
subgraph sg_3v1_var_unreached_vertices ["var unreached_vertices"]
11v1
end
end
Received vertex: 5
Received vertex: 10
Received vertex: 0
Received vertex: 3
Received vertex: 6
Received vertex: 11
Received vertex: 12
unreached_vertices vertex: 11
unreached_vertices vertex: 12