diff options
| author | dibyendumajumdar <mobile@majumdar.org.uk> | 2023-09-17 20:53:53 +0100 |
|---|---|---|
| committer | dibyendumajumdar <mobile@majumdar.org.uk> | 2023-09-17 20:53:53 +0100 |
| commit | 7ec5a9425c7585a67dc834cfb762470e86695b41 (patch) | |
| tree | c18c7056ebb6b77cd379347c6725c0a5d639d14e /chapter01/docs | |
| parent | 149c78c4921d5a653e3ff83ec3b1d02a90d0a42c (diff) | |
| download | Simple-7ec5a9425c7585a67dc834cfb762470e86695b41.tar.gz Simple-7ec5a9425c7585a67dc834cfb762470e86695b41.zip | |
Revise text and update diagram.
Remove the detail re inputs to a node from the diagram.
Diffstat (limited to 'chapter01/docs')
| -rw-r--r-- | chapter01/docs/02-graph.gv | 28 | ||||
| -rw-r--r-- | chapter01/docs/02-graph.svg | 40 |
2 files changed, 20 insertions, 48 deletions
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=< - <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> - <TR> - <TD><I>Inputs</I></TD> - </TR> - <TR> - <TD COLSPAN="3"><B>Start</B></TD> - </TR> - </TABLE> - >]; + start [shape=box, label="Start"]; constant [label="Constant 1"]; - return [shape=none, label=< - <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> - <TR> - <TD><I>Inputs</I></TD> - <TD PORT="input0">0</TD> - <TD PORT="input1">1</TD> - </TR> - <TR> - <TD COLSPAN="3"><B>Return</B></TD> - </TR> - </TABLE> - >]; - 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 diff --git a/chapter01/docs/02-graph.svg b/chapter01/docs/02-graph.svg index 1ced4870..fbf92d7d 100644 --- a/chapter01/docs/02-graph.svg +++ b/chapter01/docs/02-graph.svg @@ -4,48 +4,40 @@ <!-- Generated by graphviz version 2.43.0 (0) --> <!-- Title: chapter01 Pages: 1 --> -<svg width="218pt" height="144pt" - viewBox="0.00 0.00 217.74 144.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> -<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 140)"> +<svg width="204pt" height="116pt" + viewBox="0.00 0.00 203.74 116.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> +<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 112)"> <title>chapter01</title> -<polygon fill="white" stroke="transparent" points="-4,4 -4,-140 213.74,-140 213.74,4 -4,4"/> +<polygon fill="white" stroke="transparent" points="-4,4 -4,-112 199.74,-112 199.74,4 -4,4"/> <!-- start --> <g id="node1" class="node"> <title>start</title> -<polygon fill="none" stroke="black" points="8,-111 8,-132 60,-132 60,-111 8,-111"/> -<text text-anchor="start" x="11" y="-118.8" font-family="Times,serif" font-style="italic" font-size="14.00">Inputs</text> -<polygon fill="none" stroke="black" points="8,-90 8,-111 60,-111 60,-90 8,-90"/> -<text text-anchor="start" x="14" y="-97.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Start</text> +<polygon fill="none" stroke="black" points="54,-108 0,-108 0,-72 54,-72 54,-108"/> +<text text-anchor="middle" x="27" y="-86.3" font-family="Times,serif" font-size="14.00">Start</text> </g> <!-- return --> <g id="node3" class="node"> <title>return</title> -<polygon fill="none" stroke="black" points="23,-25 23,-46 75,-46 75,-25 23,-25"/> -<text text-anchor="start" x="26" y="-32.8" font-family="Times,serif" font-style="italic" font-size="14.00">Inputs</text> -<polygon fill="none" stroke="black" points="75,-25 75,-46 91,-46 91,-25 75,-25"/> -<text text-anchor="start" x="78" y="-31.8" font-family="Times,serif" font-size="14.00">0</text> -<polygon fill="none" stroke="black" points="91,-25 91,-46 107,-46 107,-25 91,-25"/> -<text text-anchor="start" x="94" y="-31.8" font-family="Times,serif" font-size="14.00">1</text> -<polygon fill="none" stroke="black" points="23,-4 23,-25 107,-25 107,-4 23,-4"/> -<text text-anchor="start" x="36.5" y="-11.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Return</text> +<polygon fill="none" stroke="black" points="113,-36 47,-36 47,0 113,0 113,-36"/> +<text text-anchor="middle" x="80" y="-14.3" font-family="Times,serif" font-size="14.00">Return</text> </g> <!-- start->return --> <g id="edge2" class="edge"> -<title>start->return:input0</title> -<path fill="none" stroke="red" stroke-width="2" d="M64.48,-85.89C72.1,-77.75 78.91,-67.97 81.68,-57.18"/> -<polygon fill="red" stroke="red" stroke-width="2" points="85.19,-57.37 83,-47 78.24,-56.47 85.19,-57.37"/> +<title>start->return</title> +<path fill="none" stroke="red" stroke-width="2" d="M40.1,-71.7C46.39,-63.39 54.05,-53.28 60.96,-44.14"/> +<polygon fill="red" stroke="red" stroke-width="2" points="63.8,-46.19 67.05,-36.1 58.22,-41.96 63.8,-46.19"/> </g> <!-- constant --> <g id="node2" class="node"> <title>constant</title> -<ellipse fill="none" stroke="black" cx="148" cy="-111" rx="61.99" ry="18"/> -<text text-anchor="middle" x="148" y="-107.3" font-family="Times,serif" font-size="14.00">Constant 1</text> +<ellipse fill="none" stroke="black" cx="134" cy="-90" rx="61.99" ry="18"/> +<text text-anchor="middle" x="134" y="-86.3" font-family="Times,serif" font-size="14.00">Constant 1</text> </g> <!-- constant->return --> <g id="edge1" class="edge"> -<title>constant->return:input1</title> -<path fill="none" stroke="black" d="M126.08,-94.12C115.38,-84.75 104.01,-71.82 100.27,-57"/> -<polygon fill="black" stroke="black" points="103.73,-56.48 99,-47 96.79,-57.36 103.73,-56.48"/> +<title>constant->return</title> +<path fill="none" stroke="black" d="M120.93,-72.05C114.52,-63.75 106.68,-53.58 99.58,-44.38"/> +<polygon fill="black" stroke="black" points="102.21,-42.06 93.33,-36.28 96.66,-46.33 102.21,-42.06"/> </g> </g> </svg> |
