aboutsummaryrefslogtreecommitdiffhomepage
path: root/snippets/dot_example
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-06-26 12:18:32 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-06-26 12:18:32 +0800
commit44f31b1f27c2a53cf8a4e053a50c245e379558b0 (patch)
tree4c52906716f76057d799d6ea1effcc40deae007a /snippets/dot_example
parentd415bbb33a1c2a3f9a2492668b57c4db0098ef1d (diff)
Update
Diffstat (limited to 'snippets/dot_example')
-rw-r--r--snippets/dot_example27
1 files changed, 27 insertions, 0 deletions
diff --git a/snippets/dot_example b/snippets/dot_example
new file mode 100644
index 0000000..fa95abc
--- /dev/null
+++ b/snippets/dot_example
@@ -0,0 +1,27 @@
1digraph G {
2
3 subgraph cluster_0 {
4 style=filled;
5 color=lightgrey;
6 node [style=filled,color=white];
7 a0 -> a1 -> a2 -> a3;
8 label = "process #1";
9 }
10
11 subgraph cluster_1 {
12 node [style=filled];
13 b0 -> b1 -> b2 -> b3;
14 label = "process #2";
15 color=blue
16 }
17 start -> a0;
18 start -> b0;
19 a1 -> b3;
20 b2 -> a3;
21 a3 -> a0;
22 a3 -> end;
23 b3 -> end;
24
25 start [shape=Mdiamond];
26 end [shape=Msquare];
27}