summaryrefslogtreecommitdiff
path: root/chapter01/docs/01-graph.gv
diff options
context:
space:
mode:
Diffstat (limited to 'chapter01/docs/01-graph.gv')
-rw-r--r--chapter01/docs/01-graph.gv20
1 files changed, 11 insertions, 9 deletions
diff --git a/chapter01/docs/01-graph.gv b/chapter01/docs/01-graph.gv
index 40181544..82d1b40a 100644
--- a/chapter01/docs/01-graph.gv
+++ b/chapter01/docs/01-graph.gv
@@ -1,9 +1,11 @@
-digraph chapter01
-{
- start [shape=box, label="Start"];
- constant [label="Constant 1"];
- return [shape=box, label="Return"];
- constant -> return;
- edge [color=red];
- start -> return [style=bold];
-} \ No newline at end of file
+digraph chapter01 {
+ rankdir=BT;
+ subgraph cluster_Nodes {
+ Start1 [ shape=box style=filled fillcolor=yellow label="Start" ];
+ Con12 [ label="Con1" ];
+ Return3 [ shape=box style=filled fillcolor=yellow label="Return" ];
+ }
+ Con12 -> Start1 [style=dotted];
+ Return3 -> Start1 [color=red];
+ Return3 -> Con12;
+}