Created
July 1, 2015 23:54
-
-
Save jbn/a695b32216533792a966 to your computer and use it in GitHub Desktop.
ipython-magic pull request 1 demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"%load_ext gvmagic" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 12, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n", | |
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n", | |
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n", | |
"<!-- Generated by graphviz version 2.38.0 (20140413.2041)\n", | |
" -->\n", | |
"<!-- Title: %3 Pages: 1 -->\n", | |
"<svg width=\"134pt\" height=\"260pt\"\n", | |
" viewBox=\"0.00 0.00 134.00 260.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 256)\">\n", | |
"<title>%3</title>\n", | |
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-256 130,-256 130,4 -4,4\"/>\n", | |
"<!-- A -->\n", | |
"<g id=\"node1\" class=\"node\"><title>A</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"54\" cy=\"-234\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"54\" y=\"-229.8\" font-family=\"Times,serif\" font-size=\"14.00\">A</text>\n", | |
"</g>\n", | |
"<!-- B -->\n", | |
"<g id=\"node2\" class=\"node\"><title>B</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"27\" cy=\"-90\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"27\" y=\"-85.8\" font-family=\"Times,serif\" font-size=\"14.00\">B</text>\n", | |
"</g>\n", | |
"<!-- A->B -->\n", | |
"<g id=\"edge1\" class=\"edge\"><title>A->B</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M50.7432,-215.871C46.1415,-191.67 37.688,-147.211 32.2086,-118.393\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"35.5748,-117.359 30.2684,-108.189 28.698,-118.667 35.5748,-117.359\"/>\n", | |
"</g>\n", | |
"<!-- C -->\n", | |
"<g id=\"node3\" class=\"node\"><title>C</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"82\" cy=\"-162\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"82\" y=\"-157.8\" font-family=\"Times,serif\" font-size=\"14.00\">C</text>\n", | |
"</g>\n", | |
"<!-- A->C -->\n", | |
"<g id=\"edge2\" class=\"edge\"><title>A->C</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M60.6356,-216.411C63.9134,-208.216 67.9442,-198.14 71.6181,-188.955\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"74.9477,-190.055 75.412,-179.47 68.4484,-187.455 74.9477,-190.055\"/>\n", | |
"</g>\n", | |
"<!-- E -->\n", | |
"<g id=\"node5\" class=\"node\"><title>E</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"63\" cy=\"-18\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"63\" y=\"-13.8\" font-family=\"Times,serif\" font-size=\"14.00\">E</text>\n", | |
"</g>\n", | |
"<!-- B->E -->\n", | |
"<g id=\"edge5\" class=\"edge\"><title>B->E</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M35.3496,-72.7646C39.7115,-64.2831 45.1469,-53.7144 50.0413,-44.1974\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"53.2346,-45.6409 54.6957,-35.1473 47.0096,-42.4395 53.2346,-45.6409\"/>\n", | |
"</g>\n", | |
"<!-- C->B -->\n", | |
"<g id=\"edge6\" class=\"edge\"><title>C->B</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M70.0658,-145.811C62.7864,-136.546 53.3374,-124.52 45.1456,-114.094\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"47.8413,-111.86 38.9109,-106.159 42.337,-116.185 47.8413,-111.86\"/>\n", | |
"</g>\n", | |
"<!-- D -->\n", | |
"<g id=\"node4\" class=\"node\"><title>D</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"99\" cy=\"-90\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"99\" y=\"-85.8\" font-family=\"Times,serif\" font-size=\"14.00\">D</text>\n", | |
"</g>\n", | |
"<!-- C->D -->\n", | |
"<g id=\"edge3\" class=\"edge\"><title>C->D</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M86.1152,-144.055C88.0081,-136.261 90.3004,-126.822 92.4237,-118.079\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"95.8457,-118.819 94.8046,-108.275 89.0434,-117.167 95.8457,-118.819\"/>\n", | |
"</g>\n", | |
"<!-- D->E -->\n", | |
"<g id=\"edge4\" class=\"edge\"><title>D->E</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M90.6504,-72.7646C86.2885,-64.2831 80.8531,-53.7144 75.9587,-44.1974\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"78.9904,-42.4395 71.3043,-35.1473 72.7654,-45.6409 78.9904,-42.4395\"/>\n", | |
"</g>\n", | |
"</g>\n", | |
"</svg>\n" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"%%dot digraph {\n", | |
" A -> B; A -> C; C -> D; D -> E; B -> E; C -> B;\n", | |
"}" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 13, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n", | |
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n", | |
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n", | |
"<!-- Generated by graphviz version 2.38.0 (20140413.2041)\n", | |
" -->\n", | |
"<!-- Title: %3 Pages: 1 -->\n", | |
"<svg width=\"162pt\" height=\"187pt\"\n", | |
" viewBox=\"0.00 0.00 162.21 187.41\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(74.0094 90.9769)\">\n", | |
"<title>%3</title>\n", | |
"<polygon fill=\"white\" stroke=\"none\" points=\"-74.0094,96.4331 -74.0094,-90.9769 88.2039,-90.9769 88.2039,96.4331 -74.0094,96.4331\"/>\n", | |
"<!-- A -->\n", | |
"<g id=\"node1\" class=\"node\"><title>A</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"-28.3361\" cy=\"74.4331\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"-28.3361\" y=\"78.6331\" font-family=\"Times,serif\" font-size=\"14.00\">A</text>\n", | |
"</g>\n", | |
"<!-- B -->\n", | |
"<g id=\"node2\" class=\"node\"><title>B</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"29.8123\" cy=\"31.8046\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"29.8123\" y=\"36.0046\" font-family=\"Times,serif\" font-size=\"14.00\">B</text>\n", | |
"</g>\n", | |
"<!-- A->B -->\n", | |
"<g id=\"edge1\" class=\"edge\"><title>A->B</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M-9.93757,60.9452C-5.80135,57.9129 -1.33038,54.6352 3.06897,51.4101\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"1.19956,48.4408 11.3339,45.3511 5.33827,54.0863 1.19956,48.4408\"/>\n", | |
"</g>\n", | |
"<!-- C -->\n", | |
"<g id=\"node3\" class=\"node\"><title>C</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"-43.0094\" cy=\"4.00111\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"-43.0094\" y=\"8.20111\" font-family=\"Times,serif\" font-size=\"14.00\">C</text>\n", | |
"</g>\n", | |
"<!-- A->C -->\n", | |
"<g id=\"edge2\" class=\"edge\"><title>A->C</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M-32.1148,56.2951C-33.6672,48.8439 -35.4999,40.0468 -37.2149,31.8148\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"-40.6811,32.3375 -39.2942,21.8338 -33.8282,30.9097 -40.6811,32.3375\"/>\n", | |
"</g>\n", | |
"<!-- E -->\n", | |
"<g id=\"node5\" class=\"node\"><title>E</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"57.2039\" cy=\"-41.2618\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"57.2039\" y=\"-37.0618\" font-family=\"Times,serif\" font-size=\"14.00\">E</text>\n", | |
"</g>\n", | |
"<!-- B->E -->\n", | |
"<g id=\"edge5\" class=\"edge\"><title>B->E</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M36.443,14.1172C39.6394,5.59108 43.5427,-4.82092 47.0986,-14.3062\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"43.8466,-15.6024 50.6342,-23.7374 50.4012,-13.1451 43.8466,-15.6024\"/>\n", | |
"</g>\n", | |
"<!-- C->B -->\n", | |
"<g id=\"edge6\" class=\"edge\"><title>C->B</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M-19.5673,12.9513C-14.474,14.896 -8.99117,16.9893 -3.59684,19.0489\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"-2.17964,15.8435 5.91417,22.6802 -4.6765,22.3831 -2.17964,15.8435\"/>\n", | |
"</g>\n", | |
"<!-- D -->\n", | |
"<g id=\"node4\" class=\"node\"><title>D</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"-15.6708\" cy=\"-68.9769\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"-15.6708\" y=\"-64.7769\" font-family=\"Times,serif\" font-size=\"14.00\">D</text>\n", | |
"</g>\n", | |
"<!-- C->D -->\n", | |
"<g id=\"edge3\" class=\"edge\"><title>C->D</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M-36.3915,-13.6648C-33.2013,-22.1807 -29.3055,-32.5801 -25.7565,-42.0538\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"-29.0134,-43.337 -22.2277,-51.4737 -22.4583,-40.8813 -29.0134,-43.337\"/>\n", | |
"</g>\n", | |
"<!-- D->E -->\n", | |
"<g id=\"edge4\" class=\"edge\"><title>D->E</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M7.78839,-60.0551C12.9375,-58.0969 18.4842,-55.9874 23.9357,-53.9141\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"25.4362,-57.0881 33.5389,-50.2619 22.9478,-50.5453 25.4362,-57.0881\"/>\n", | |
"</g>\n", | |
"</g>\n", | |
"</svg>\n" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"%%dot -K neato digraph {\n", | |
" A -> B; A -> C; C -> D; D -> E; B -> E; C -> B;\n", | |
"}" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 14, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n", | |
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n", | |
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n", | |
"<!-- Generated by graphviz version 2.38.0 (20140413.2041)\n", | |
" -->\n", | |
"<!-- Title: %3 Pages: 1 -->\n", | |
"<svg width=\"164pt\" height=\"160pt\"\n", | |
" viewBox=\"0.00 0.00 164.00 160.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 156)\">\n", | |
"<title>%3</title>\n", | |
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-156 160,-156 160,4 -4,4\"/>\n", | |
"<!-- A -->\n", | |
"<g id=\"node1\" class=\"node\"><title>A</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"26.7726\" cy=\"-21.2302\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"26.7726\" y=\"-17.0302\" font-family=\"Times,serif\" font-size=\"14.00\">A</text>\n", | |
"</g>\n", | |
"<!-- B -->\n", | |
"<g id=\"node2\" class=\"node\"><title>B</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"128.606\" cy=\"-64.4032\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"128.606\" y=\"-60.2032\" font-family=\"Times,serif\" font-size=\"14.00\">B</text>\n", | |
"</g>\n", | |
"<!-- A->B -->\n", | |
"<g id=\"edge1\" class=\"edge\"><title>A->B</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M49.626,-30.919C63.2873,-36.7109 80.8684,-44.1645 95.9737,-50.5685\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"94.9035,-53.9163 105.476,-54.5973 97.6359,-47.4716 94.9035,-53.9163\"/>\n", | |
"</g>\n", | |
"<!-- C -->\n", | |
"<g id=\"node3\" class=\"node\"><title>C</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"91.9898\" cy=\"-17.6122\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"91.9898\" y=\"-13.4122\" font-family=\"Times,serif\" font-size=\"14.00\">C</text>\n", | |
"</g>\n", | |
"<!-- A->C -->\n", | |
"<g id=\"edge2\" class=\"edge\"><title>A->C</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M54.0527,-19.7168C54.2796,-19.7042 54.5068,-19.6916 54.7343,-19.679\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"55.2373,-23.1565 65.0281,-19.1079 54.8495,-16.1673 55.2373,-23.1565\"/>\n", | |
"</g>\n", | |
"<!-- E -->\n", | |
"<g id=\"node5\" class=\"node\"><title>E</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"110.799\" cy=\"-133.981\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"110.799\" y=\"-129.781\" font-family=\"Times,serif\" font-size=\"14.00\">E</text>\n", | |
"</g>\n", | |
"<!-- B->E -->\n", | |
"<g id=\"edge5\" class=\"edge\"><title>B->E</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M124.02,-82.3213C122.165,-89.569 119.98,-98.1056 117.927,-106.129\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"114.52,-105.327 115.431,-115.882 121.301,-107.062 114.52,-105.327\"/>\n", | |
"</g>\n", | |
"<!-- C->B -->\n", | |
"<g id=\"edge6\" class=\"edge\"><title>C->B</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M104.591,-33.715C106.22,-35.7968 107.916,-37.9642 109.62,-40.1416\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"107.186,-42.7109 116.106,-48.4292 112.699,-38.3969 107.186,-42.7109\"/>\n", | |
"</g>\n", | |
"<!-- D -->\n", | |
"<g id=\"node4\" class=\"node\"><title>D</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"31.4141\" cy=\"-100.732\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"31.4141\" y=\"-96.5315\" font-family=\"Times,serif\" font-size=\"14.00\">D</text>\n", | |
"</g>\n", | |
"<!-- C->D -->\n", | |
"<g id=\"edge3\" class=\"edge\"><title>C->D</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M80.022,-34.0339C71.3105,-45.9875 59.3601,-62.3852 49.4888,-75.9303\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"46.4182,-74.2009 43.357,-84.3439 52.0753,-78.3237 46.4182,-74.2009\"/>\n", | |
"</g>\n", | |
"<!-- D->E -->\n", | |
"<g id=\"edge4\" class=\"edge\"><title>D->E</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M54.3754,-110.349C61.9454,-113.519 70.5091,-117.106 78.6357,-120.51\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"77.3133,-123.751 87.8891,-124.386 80.0176,-117.294 77.3133,-123.751\"/>\n", | |
"</g>\n", | |
"</g>\n", | |
"</svg>\n" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"%%dot -K fdp digraph {\n", | |
" A -> B; A -> C; C -> D; D -> E; B -> E; C -> B;\n", | |
"}" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 15, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n", | |
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n", | |
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n", | |
"<!-- Generated by graphviz version 2.38.0 (20140413.2041)\n", | |
" -->\n", | |
"<!-- Title: %3 Pages: 1 -->\n", | |
"<svg width=\"243pt\" height=\"235pt\"\n", | |
" viewBox=\"0.00 0.00 243.39 234.72\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 230.72)\">\n", | |
"<title>%3</title>\n", | |
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-230.72 239.386,-230.72 239.386,4 -4,4\"/>\n", | |
"<!-- A -->\n", | |
"<g id=\"node1\" class=\"node\"><title>A</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"139.103\" cy=\"-18\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"139.103\" y=\"-13.8\" font-family=\"Times,serif\" font-size=\"14.00\">A</text>\n", | |
"</g>\n", | |
"<!-- B -->\n", | |
"<g id=\"node2\" class=\"node\"><title>B</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"27\" cy=\"-54.4243\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"27\" y=\"-50.2243\" font-family=\"Times,serif\" font-size=\"14.00\">B</text>\n", | |
"</g>\n", | |
"<!-- A->B -->\n", | |
"<g id=\"edge1\" class=\"edge\"><title>A->B</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M114.778,-25.9035C99.0596,-31.0108 78.3778,-37.7307 61.0377,-43.3648\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"59.7061,-40.1173 51.2771,-46.5362 61.8693,-46.7747 59.7061,-40.1173\"/>\n", | |
"</g>\n", | |
"<!-- C -->\n", | |
"<g id=\"node3\" class=\"node\"><title>C</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"27\" cy=\"-172.296\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"27\" y=\"-168.096\" font-family=\"Times,serif\" font-size=\"14.00\">C</text>\n", | |
"</g>\n", | |
"<!-- A->C -->\n", | |
"<g id=\"edge2\" class=\"edge\"><title>A->C</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M127.318,-34.2207C107.689,-61.2372 68.176,-115.622 45.0291,-147.481\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"42.0109,-145.681 38.9646,-155.828 47.674,-149.795 42.0109,-145.681\"/>\n", | |
"</g>\n", | |
"<!-- E -->\n", | |
"<g id=\"node5\" class=\"node\"><title>E</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"139.103\" cy=\"-208.72\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"139.103\" y=\"-204.52\" font-family=\"Times,serif\" font-size=\"14.00\">E</text>\n", | |
"</g>\n", | |
"<!-- B->E -->\n", | |
"<g id=\"edge5\" class=\"edge\"><title>B->E</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M38.7851,-70.6451C58.4136,-97.6615 97.9266,-152.046 121.074,-183.905\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"118.429,-186.22 127.138,-192.253 124.092,-182.105 118.429,-186.22\"/>\n", | |
"</g>\n", | |
"<!-- C->B -->\n", | |
"<g id=\"edge6\" class=\"edge\"><title>C->B</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M27,-154.137C27,-135.157 27,-105.11 27,-82.9567\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"30.5001,-82.7983 27,-72.7983 23.5001,-82.7983 30.5001,-82.7983\"/>\n", | |
"</g>\n", | |
"<!-- D -->\n", | |
"<g id=\"node4\" class=\"node\"><title>D</title>\n", | |
"<ellipse fill=\"none\" stroke=\"black\" cx=\"208.386\" cy=\"-113.36\" rx=\"27\" ry=\"18\"/>\n", | |
"<text text-anchor=\"middle\" x=\"208.386\" y=\"-109.16\" font-family=\"Times,serif\" font-size=\"14.00\">D</text>\n", | |
"</g>\n", | |
"<!-- C->D -->\n", | |
"<g id=\"edge3\" class=\"edge\"><title>C->D</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M51.4625,-164.348C83.1946,-154.037 138.711,-135.999 174.49,-124.374\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"175.593,-127.695 184.022,-121.276 173.43,-121.038 175.593,-127.695\"/>\n", | |
"</g>\n", | |
"<!-- D->E -->\n", | |
"<g id=\"edge4\" class=\"edge\"><title>D->E</title>\n", | |
"<path fill=\"none\" stroke=\"black\" d=\"M196.318,-129.971C185.489,-144.875 169.447,-166.954 157.103,-183.944\"/>\n", | |
"<polygon fill=\"black\" stroke=\"black\" points=\"154.079,-182.153 151.033,-192.3 159.742,-186.267 154.079,-182.153\"/>\n", | |
"</g>\n", | |
"</g>\n", | |
"</svg>\n" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"%%dot -K circo digraph {\n", | |
" A -> B; A -> C; C -> D; D -> E; B -> E; C -> B;\n", | |
"}" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 2", | |
"language": "python", | |
"name": "python2" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 2 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython2", | |
"version": "2.7.9" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment