Add diagram

This commit is contained in:
Niles Rogoff 2017-06-30 00:26:55 -07:00
parent 39c41053cb
commit 7b5ff1219f
No known key found for this signature in database
GPG Key ID: B78B908F23430F80
2 changed files with 124 additions and 0 deletions

14
graph Normal file
View File

@ -0,0 +1,14 @@
digraph test {
splines=true;
overlap=false;
graph [overlap = false];
"closed?" -> "closed?" [label="start here"]
"closed?" -> "xhr and key" [label="no"]
"closed?" -> "have closedkey?" [label="yes"]
"xhr and key" -> "closed? (2)"
"closed? (2)" -> "store closedkey" [label="yes"]
"store closedkey" -> "comparison and update elem"
"closed? (2)" -> "comparison and update elem" [label="no"]
"have closedkey?" -> "xhr and key" [label="no"]
"have closedkey?" -> "comparison and update elem" [label="yes"]
}

110
graph.svg Normal file
View File

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.40.1 (20161225.0304)
-->
<!-- Title: test Pages: 1 -->
<svg width="480pt" height="313pt"
viewBox="0.00 0.00 480.31 313.14" 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 309.1356)">
<title>test</title>
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-309.1356 476.3063,-309.1356 476.3063,4 -4,4"/>
<!-- closed? -->
<g id="node1" class="node">
<title>closed?</title>
<ellipse fill="none" stroke="#000000" cx="45.496" cy="-18" rx="45.4919" ry="18"/>
<text text-anchor="middle" x="45.496" y="-14.3" font-family="Times,serif" font-size="14.00" fill="#000000">closed?</text>
</g>
<!-- closed?&#45;&gt;closed? -->
<g id="edge1" class="edge">
<title>closed?&#45;&gt;closed?</title>
<path fill="none" stroke="#000000" d="M87.9293,-24.7166C99.8451,-24.4225 108.9919,-22.1836 108.9919,-18 108.9919,-15.1238 104.6686,-13.1667 98.0945,-12.1289"/>
<polygon fill="#000000" stroke="#000000" points="98.185,-8.6244 87.9293,-11.2834 97.6047,-15.6003 98.185,-8.6244"/>
<text text-anchor="middle" x="144.9919" y="-14.3" font-family="Times,serif" font-size="14.00" fill="#000000">start here</text>
</g>
<!-- xhr and key -->
<g id="node2" class="node">
<title>xhr and key</title>
<ellipse fill="none" stroke="#000000" cx="95.0454" cy="-163.5953" rx="65.7887" ry="18"/>
<text text-anchor="middle" x="95.0454" y="-159.8953" font-family="Times,serif" font-size="14.00" fill="#000000">xhr and key</text>
</g>
<!-- closed?&#45;&gt;xhr and key -->
<g id="edge2" class="edge">
<title>closed?&#45;&gt;xhr and key</title>
<path fill="none" stroke="#000000" d="M51.5717,-35.8528C60.0786,-60.8493 75.6176,-106.5089 85.6296,-135.9282"/>
<polygon fill="#000000" stroke="#000000" points="82.3847,-137.2572 88.9199,-145.5964 89.0115,-135.0019 82.3847,-137.2572"/>
<text text-anchor="middle" x="61.221" y="-94.4517" font-family="Times,serif" font-size="14.00" fill="#000000">no</text>
</g>
<!-- have closedkey? -->
<g id="node3" class="node">
<title>have closedkey?</title>
<ellipse fill="none" stroke="#000000" cx="198.5235" cy="-36.0775" rx="87.1846" ry="18"/>
<text text-anchor="middle" x="198.5235" y="-32.3775" font-family="Times,serif" font-size="14.00" fill="#000000">have closedkey?</text>
</g>
<!-- closed?&#45;&gt;have closedkey? -->
<g id="edge3" class="edge">
<title>closed?&#45;&gt;have closedkey?</title>
<path fill="none" stroke="#000000" d="M89.3475,-23.1803C96.8194,-24.063 104.803,-25.0061 112.925,-25.9656"/>
<polygon fill="#000000" stroke="#000000" points="112.5341,-29.4436 122.8757,-27.1411 113.3554,-22.492 112.5341,-29.4436"/>
<text text-anchor="middle" x="93.6132" y="-28.9609" font-family="Times,serif" font-size="14.00" fill="#000000">yes</text>
</g>
<!-- closed? (2) -->
<g id="node4" class="node">
<title>closed? (2)</title>
<ellipse fill="none" stroke="#000000" cx="223.2024" cy="-268.9271" rx="61.1893" ry="18"/>
<text text-anchor="middle" x="223.2024" y="-265.2271" font-family="Times,serif" font-size="14.00" fill="#000000">closed? (2)</text>
</g>
<!-- xhr and key&#45;&gt;closed? (2) -->
<g id="edge4" class="edge">
<title>xhr and key&#45;&gt;closed? (2)</title>
<path fill="none" stroke="#000000" d="M115.9212,-180.7531C137.2393,-198.2743 170.4987,-225.6101 194.333,-245.1995"/>
<polygon fill="#000000" stroke="#000000" points="192.3876,-248.1309 202.3354,-251.7766 196.8323,-242.7231 192.3876,-248.1309"/>
</g>
<!-- have closedkey?&#45;&gt;xhr and key -->
<g id="edge8" class="edge">
<title>have closedkey?&#45;&gt;xhr and key</title>
<path fill="none" stroke="#000000" d="M183.9171,-54.0772C166.1985,-75.9121 136.1999,-112.8798 116.0148,-137.7543"/>
<polygon fill="#000000" stroke="#000000" points="113.1609,-135.7166 109.5775,-145.6871 118.5964,-140.1275 113.1609,-135.7166"/>
<text text-anchor="middle" x="137.868" y="-103.5334" font-family="Times,serif" font-size="14.00" fill="#000000">no</text>
</g>
<!-- comparison and update elem -->
<g id="node6" class="node">
<title>comparison and update elem</title>
<ellipse fill="none" stroke="#000000" cx="326.7192" cy="-141.439" rx="145.6742" ry="18"/>
<text text-anchor="middle" x="326.7192" y="-137.739" font-family="Times,serif" font-size="14.00" fill="#000000">comparison and update elem</text>
</g>
<!-- have closedkey?&#45;&gt;comparison and update elem -->
<g id="edge9" class="edge">
<title>have closedkey?&#45;&gt;comparison and update elem</title>
<path fill="none" stroke="#000000" d="M219.9806,-53.7127C241.0214,-71.0057 273.2813,-97.5195 296.8292,-116.8731"/>
<polygon fill="#000000" stroke="#000000" points="294.8145,-119.7476 304.7624,-123.3932 299.2592,-114.3397 294.8145,-119.7476"/>
<text text-anchor="middle" x="249.7685" y="-92.2682" font-family="Times,serif" font-size="14.00" fill="#000000">yes</text>
</g>
<!-- store closedkey -->
<g id="node5" class="node">
<title>store closedkey</title>
<ellipse fill="none" stroke="#000000" cx="376.1548" cy="-287.1356" rx="83.6854" ry="18"/>
<text text-anchor="middle" x="376.1548" y="-283.4356" font-family="Times,serif" font-size="14.00" fill="#000000">store closedkey</text>
</g>
<!-- closed? (2)&#45;&gt;store closedkey -->
<g id="edge5" class="edge">
<title>closed? (2)&#45;&gt;store closedkey</title>
<path fill="none" stroke="#000000" d="M280.1562,-275.7072C284.3127,-276.2021 288.5516,-276.7067 292.8193,-277.2147"/>
<polygon fill="#000000" stroke="#000000" points="292.4604,-280.6966 302.804,-278.4034 293.2879,-273.7457 292.4604,-280.6966"/>
<text text-anchor="middle" x="297.8698" y="-265.8719" font-family="Times,serif" font-size="14.00" fill="#000000">yes</text>
</g>
<!-- closed? (2)&#45;&gt;comparison and update elem -->
<g id="edge7" class="edge">
<title>closed? (2)&#45;&gt;comparison and update elem</title>
<path fill="none" stroke="#000000" d="M237.5959,-251.2004C255.2647,-229.4401 285.3724,-192.3604 305.6474,-167.3904"/>
<polygon fill="#000000" stroke="#000000" points="308.5278,-169.3955 312.1142,-159.4261 303.0935,-164.9831 308.5278,-169.3955"/>
<text text-anchor="middle" x="265.9669" y="-208.9755" font-family="Times,serif" font-size="14.00" fill="#000000">no</text>
</g>
<!-- store closedkey&#45;&gt;comparison and update elem -->
<g id="edge6" class="edge">
<title>store closedkey&#45;&gt;comparison and update elem</title>
<path fill="none" stroke="#000000" d="M369.9937,-268.9776C361.5196,-244.0029 346.1883,-198.8183 336.2344,-169.4823"/>
<polygon fill="#000000" stroke="#000000" points="339.4855,-168.171 332.9579,-159.8259 332.8567,-170.4202 339.4855,-168.171"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB