From ab6746dddee6175a68df2b34c147751e267324da Mon Sep 17 00:00:00 2001 From: dibyendumajumdar Date: Sun, 17 Sep 2023 19:21:12 +0100 Subject: Add diagram --- chapter01/docs/02-graph.gv | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 chapter01/docs/02-graph.gv (limited to 'chapter01/docs/02-graph.gv') diff --git a/chapter01/docs/02-graph.gv b/chapter01/docs/02-graph.gv new file mode 100644 index 00000000..a47c23fe --- /dev/null +++ b/chapter01/docs/02-graph.gv @@ -0,0 +1,29 @@ +digraph chapter01 +{ + start [shape=none, label=< + + + + + + + +
Inputs
Start
+ >]; + constant [label="Constant 1"]; + return [shape=none, label=< + + + + + + + + + +
Inputs01
Return
+ >]; + constant -> return:input1; + edge [color=red]; + start -> return:input0 [style=bold]; +} \ No newline at end of file -- cgit v1.2.3 From 7ec5a9425c7585a67dc834cfb762470e86695b41 Mon Sep 17 00:00:00 2001 From: dibyendumajumdar Date: Sun, 17 Sep 2023 20:53:53 +0100 Subject: Revise text and update diagram. Remove the detail re inputs to a node from the diagram. --- chapter01/docs/02-graph.gv | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) (limited to 'chapter01/docs/02-graph.gv') diff --git a/chapter01/docs/02-graph.gv b/chapter01/docs/02-graph.gv index a47c23fe..40181544 100644 --- a/chapter01/docs/02-graph.gv +++ b/chapter01/docs/02-graph.gv @@ -1,29 +1,9 @@ digraph chapter01 { - start [shape=none, label=< - - - - - - - -
Inputs
Start
- >]; + start [shape=box, label="Start"]; constant [label="Constant 1"]; - return [shape=none, label=< - - - - - - - - - -
Inputs01
Return
- >]; - constant -> return:input1; + return [shape=box, label="Return"]; + constant -> return; edge [color=red]; - start -> return:input0 [style=bold]; + start -> return [style=bold]; } \ No newline at end of file -- cgit v1.2.3