This implement several new options for --dot in order to allow emptiness sets to be output as colored ⓿ or ❶... Also add a SPOT_DOTDEFAULT environment variable. * NEWS, src/bin/man/spot-x.x, src/bin/common_aoutput.cc, src/bin/dstar2tgba.cc: Document the new options. * doc/org/.dir-locals.el, doc/org/init.el.in: Setup SPOT_DOTEXTRA and SPOT_DOTDEFAULT for all documents. * doc/org/autfilt.org, doc/org/dstar2tgba.org, doc/org/ltl2tgba.org, doc/org/ltldo.org, doc/org/oaut.org, doc/org/randaut.org, doc/org/satmin.org: Adjust to this new setup. * src/misc/escape.cc, src/misc/escape.hh (escape_html): New function. * src/tgba/acc.cc, src/tgba/acc.hh (to_text, to_html): New method. * src/tgbaalgos/dotty.cc: Implement the new options. * src/tgbatest/readsave.test, wrap/python/tests/automata.ipynb: More tests. * wrap/python/spot.py: Make sure the default argument for dotty_reachable is None, so that SPOT_DOTDEFAULT is honored.
992 lines
No EOL
63 KiB
Text
992 lines
No EOL
63 KiB
Text
{
|
|
"metadata": {
|
|
"name": "",
|
|
"signature": "sha256:46e5472540261241876badd1678f26f98c6708247f2b22d92e76ec7d15136f5c"
|
|
},
|
|
"nbformat": 3,
|
|
"nbformat_minor": 0,
|
|
"worksheets": [
|
|
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"import spot\n",
|
|
"import os\n",
|
|
"os.environ['SPOT_DOTEXTRA'] = 'node[style=filled,fillcolor=\"#ffffaa\"]'\n",
|
|
"os.environ['SPOT_DOTDEFAULT'] = 'rbc'"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 1
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"a = spot.translate('(a U b) & GFc & GFd', 'BA', complete=True); a"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 3,
|
|
"svg": [
|
|
"<?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: G Pages: 1 -->\n",
|
|
"<svg width=\"417pt\" height=\"184pt\"\n",
|
|
" viewBox=\"0.00 0.00 417.00 184.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 180)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-180 413,-180 413,4 -4,4\"/>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\"><title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"56\" cy=\"-69\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"56\" y=\"-65.3\" font-family=\"Times,serif\" font-size=\"14.00\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\"><title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1.15491,-69C2.67247,-69 15.0966,-69 27.6277,-69\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"27.9419,-72.5001 37.9419,-69 27.9418,-65.5001 27.9419,-72.5001\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 0->0 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\"><title>0->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M49.6208,-86.0373C48.3189,-95.8579 50.4453,-105 56,-105 59.4717,-105 61.6042,-101.429 62.3975,-96.3529\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"65.8971,-96.031 62.3792,-86.0373 58.8971,-96.0435 65.8971,-96.031\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"37.5\" y=\"-108.8\" font-family=\"Times,serif\" font-size=\"14.00\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node3\" class=\"node\"><title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"173\" cy=\"-109\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<ellipse fill=\"none\" stroke=\"black\" cx=\"173\" cy=\"-109\" rx=\"22\" ry=\"22\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"173\" y=\"-105.3\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\"><title>0->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M73.4767,-74.731C91.4653,-80.9879 120.631,-91.1325 142.571,-98.7639\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"141.482,-102.091 152.077,-102.07 143.782,-95.4793 141.482,-102.091\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"109\" y=\"-97.8\" font-family=\"Times,serif\" font-size=\"14.00\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g id=\"node4\" class=\"node\"><title>4</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"173\" cy=\"-18\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"173\" y=\"-14.3\" font-family=\"Times,serif\" font-size=\"14.00\">4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->4 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\"><title>0->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M72.9903,-61.9087C92.1291,-53.421 124.406,-39.107 146.884,-29.1383\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"148.423,-32.2847 156.146,-25.0311 145.585,-25.8857 148.423,-32.2847\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"92\" y=\"-55.8\" font-family=\"Times,serif\" font-size=\"14.00\">!a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge5\" class=\"edge\"><title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M162.933,-128.757C161.223,-139.35 164.578,-149 173,-149 178.527,-149 181.872,-144.844 183.035,-138.993\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"186.536,-138.768 183.067,-128.757 179.536,-138.747 186.536,-138.768\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"157\" y=\"-152.8\" font-family=\"Times,serif\" font-size=\"14.00\">c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g id=\"node5\" class=\"node\"><title>2</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"391\" cy=\"-99\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"391\" y=\"-95.3\" font-family=\"Times,serif\" font-size=\"14.00\">2</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g id=\"edge6\" class=\"edge\"><title>1->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M190.397,-123.162C214.143,-141.898 259.681,-171.208 300,-159 326.567,-150.956 352.459,-132.198 369.599,-117.781\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"372.017,-120.316 377.274,-111.117 367.428,-115.03 372.017,-120.316\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"263\" y=\"-164.8\" font-family=\"Times,serif\" font-size=\"14.00\">!c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g id=\"node6\" class=\"node\"><title>3</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"281.5\" cy=\"-99\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"281.5\" y=\"-95.3\" font-family=\"Times,serif\" font-size=\"14.00\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->3 -->\n",
|
|
"<g id=\"edge7\" class=\"edge\"><title>1->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M195.193,-108.948C209.342,-108.706 228.339,-107.983 245,-106 247.77,-105.67 250.647,-105.244 253.511,-104.766\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"254.424,-108.156 263.61,-102.877 253.137,-101.275 254.424,-108.156\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"223\" y=\"-111.8\" font-family=\"Times,serif\" font-size=\"14.00\">!d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g id=\"edge13\" class=\"edge\"><title>4->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M163.425,-33.5414C160.73,-43.9087 163.922,-54 173,-54 178.958,-54 182.38,-49.654 183.267,-43.7362\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"186.744,-43.2812 182.575,-33.5414 179.76,-43.7557 186.744,-43.2812\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"173\" y=\"-57.8\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->1 -->\n",
|
|
"<g id=\"edge8\" class=\"edge\"><title>2->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M375.779,-88.9002C352.56,-73.6457 304.892,-47.4667 263,-57 239.225,-62.4104 215.547,-76.7915 198.597,-89.0618\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"196.279,-86.4254 190.382,-95.2273 200.481,-92.0241 196.279,-86.4254\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"278\" y=\"-60.8\" font-family=\"Times,serif\" font-size=\"14.00\">c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g id=\"edge9\" class=\"edge\"><title>2->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M381.767,-114.541C379.169,-124.909 382.246,-135 391,-135 396.745,-135 400.045,-130.654 400.9,-124.736\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"404.379,-124.291 400.233,-114.541 397.394,-124.749 404.379,-124.291\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"385.5\" y=\"-138.8\" font-family=\"Times,serif\" font-size=\"14.00\">!c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->1 -->\n",
|
|
"<g id=\"edge10\" class=\"edge\"><title>3->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M264.522,-92.2959C250.744,-87.4303 230.383,-82.4351 213,-87 208.771,-88.1106 204.517,-89.7954 200.454,-91.7483\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"198.542,-88.8035 191.42,-96.6478 201.879,-94.9568 198.542,-88.8035\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"213\" y=\"-90.8\" font-family=\"Times,serif\" font-size=\"14.00\">c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->2 -->\n",
|
|
"<g id=\"edge11\" class=\"edge\"><title>3->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M299.772,-99C316.698,-99 342.762,-99 362.533,-99\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"362.771,-102.5 372.771,-99 362.771,-95.5001 362.771,-102.5\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"318\" y=\"-102.8\" font-family=\"Times,serif\" font-size=\"14.00\">!c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g id=\"edge12\" class=\"edge\"><title>3->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M272.521,-114.916C270.179,-125.15 273.172,-135 281.5,-135 286.965,-135 290.133,-130.758 291.003,-124.949\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"294.496,-124.72 290.479,-114.916 287.505,-125.085 294.496,-124.72\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"275.5\" y=\"-138.8\" font-family=\"Times,serif\" font-size=\"14.00\">!d</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text": [
|
|
"<spot_impl.tgba_digraph; proxy of <Swig Object of type 'std::shared_ptr< spot::tgba_digraph > *' at 0x7f7be0d392d0> >"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 3
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"a.show(\"\")"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 4,
|
|
"svg": [
|
|
"<svg height=\"186pt\" viewBox=\"0.00 0.00 488.00 186.00\" width=\"488pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
|
"<g class=\"graph\" id=\"graph0\" transform=\"scale(1 1) rotate(0) translate(4 182)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" points=\"-4,4 -4,-182 484,-182 484,4 -4,4\" stroke=\"none\"/>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g class=\"node\" id=\"node2\"><title>0</title>\n",
|
|
"<ellipse cx=\"65\" cy=\"-69\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"65\" y=\"-65.3\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge1\"><title>I->0</title>\n",
|
|
"<path d=\"M1.04566,-69C1.88296,-69 14.1126,-69 27.573,-69\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"27.9378,-72.5001 37.9378,-69 27.9378,-65.5001 27.9378,-72.5001\" stroke=\"black\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 0->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge2\"><title>0->0</title>\n",
|
|
"<path d=\"M57.1448,-86.4099C55.6785,-96.0879 58.2969,-105 65,-105 69.1895,-105 71.7833,-101.519 72.7816,-96.5449\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"76.2824,-96.4351 72.8552,-86.4099 69.2826,-96.3842 76.2824,-96.4351\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"65\" y=\"-108.8\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g class=\"node\" id=\"node3\"><title>1</title>\n",
|
|
"<ellipse cx=\"200\" cy=\"-109\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"200\" cy=\"-109\" fill=\"none\" rx=\"31\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"200\" y=\"-105.3\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge3\"><title>0->1</title>\n",
|
|
"<path d=\"M89.7777,-76.1512C109.694,-82.1411 138.477,-90.7975 161.495,-97.7204\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"160.704,-101.137 171.288,-100.666 162.72,-94.4338 160.704,-101.137\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"130.5\" y=\"-96.8\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g class=\"node\" id=\"node4\"><title>4</title>\n",
|
|
"<ellipse cx=\"200\" cy=\"-18\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"200\" y=\"-14.3\">4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge4\"><title>0->4</title>\n",
|
|
"<path d=\"M88.8635,-60.2328C110.274,-52.0226 142.49,-39.6691 166.556,-30.4408\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"167.906,-33.6719 175.99,-26.8235 165.4,-27.1359 167.906,-33.6719\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"130.5\" y=\"-54.8\">!a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge5\"><title>1->1</title>\n",
|
|
"<path d=\"M188.354,-129.581C186.743,-139.845 190.625,-149 200,-149 206.006,-149 209.757,-145.243 211.254,-139.844\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"214.762,-139.707 211.646,-129.581 207.767,-139.44 214.762,-139.707\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"200\" y=\"-152.8\">c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g class=\"node\" id=\"node5\"><title>2</title>\n",
|
|
"<ellipse cx=\"453\" cy=\"-99\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"453\" y=\"-95.3\">2</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge6\"><title>1->2</title>\n",
|
|
"<path d=\"M222.782,-123.932C241.9,-136.075 270.957,-152.26 299,-159 322.335,-164.609 329.885,-165.458 353,-159 380.696,-151.262 408.36,-133.43 427.375,-119.205\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"429.683,-121.845 435.472,-112.972 425.413,-116.298 429.683,-121.845\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"326\" y=\"-166.8\">!c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g class=\"node\" id=\"node6\"><title>3</title>\n",
|
|
"<ellipse cx=\"326\" cy=\"-99\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"326\" y=\"-95.3\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge7\"><title>1->3</title>\n",
|
|
"<path d=\"M231.069,-108.727C246.096,-108.374 264.539,-107.612 281,-106 283.721,-105.734 286.529,-105.407 289.349,-105.043\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"290.071,-108.475 299.474,-103.594 289.079,-101.546 290.071,-108.475\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"265\" y=\"-111.8\">!d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge13\"><title>4->4</title>\n",
|
|
"<path d=\"M188.75,-34.6641C186.25,-44.625 190,-54 200,-54 206.406,-54 210.247,-50.1525 211.524,-44.7682\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"215.02,-44.5656 211.25,-34.6641 208.022,-44.7552 215.02,-44.5656\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"200\" y=\"-57.8\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge8\"><title>2->1</title>\n",
|
|
"<path d=\"M431.922,-87.6352C412.452,-77.3145 381.724,-62.8411 353,-57 329.481,-52.2175 322.402,-51.6745 299,-57 274.468,-62.5828 249.456,-76.007 230.841,-87.8168\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"228.696,-85.0376 222.246,-93.4432 232.53,-90.8942 228.696,-85.0376\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"326\" y=\"-60.8\">c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge9\"><title>2->2</title>\n",
|
|
"<path d=\"M442.102,-115.664C439.68,-125.625 443.312,-135 453,-135 459.206,-135 462.927,-131.152 464.164,-125.768\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"467.66,-125.569 463.898,-115.664 460.662,-125.752 467.66,-125.569\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"453\" y=\"-138.8\">!c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge10\"><title>3->1</title>\n",
|
|
"<path d=\"M301.585,-90.8211C286.491,-86.65 266.488,-83.1832 249,-87 243.979,-88.0958 238.855,-89.7668 233.914,-91.7084\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"232.497,-88.508 224.713,-95.6958 235.281,-94.9308 232.497,-88.508\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"265\" y=\"-90.8\">c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge11\"><title>3->2</title>\n",
|
|
"<path d=\"M353.204,-99C371.371,-99 395.799,-99 415.82,-99\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"415.83,-102.5 425.83,-99 415.83,-95.5001 415.83,-102.5\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"389.5\" y=\"-102.8\">!c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge12\"><title>3->3</title>\n",
|
|
"<path d=\"M315.453,-115.664C313.109,-125.625 316.625,-135 326,-135 332.006,-135 335.607,-131.152 336.804,-125.768\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"340.3,-125.572 336.547,-115.664 333.302,-125.75 340.3,-125.572\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"326\" y=\"-138.8\">!d</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>"
|
|
],
|
|
"text": [
|
|
"<IPython.core.display.SVG at 0x7f7be5375860>"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 4
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"a.show(\".ast\")"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 5,
|
|
"svg": [
|
|
"<svg height=\"342pt\" viewBox=\"0.00 0.00 425.00 342.00\" width=\"425pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
|
"<g class=\"graph\" id=\"graph0\" transform=\"scale(1 1) rotate(0) translate(4 338)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" points=\"-4,4 -4,-338 421,-338 421,4 -4,4\" stroke=\"none\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"190\" y=\"-319.8\">Inf(</text>\n",
|
|
"<text fill=\"#5da5da\" font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"211\" y=\"-319.8\">\u24ff</text>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"222\" y=\"-319.8\">)</text>\n",
|
|
"<g class=\"cluster\" id=\"clust1\"><title>cluster_0</title>\n",
|
|
"<polygon fill=\"none\" points=\"143,-101 143,-303 409,-303 409,-101 143,-101\" stroke=\"green\"/>\n",
|
|
"</g>\n",
|
|
"<g class=\"cluster\" id=\"clust2\"><title>cluster_1</title>\n",
|
|
"<polygon fill=\"none\" points=\"143,-8 143,-93 195,-93 195,-8 143,-8\" stroke=\"grey\"/>\n",
|
|
"</g>\n",
|
|
"<g class=\"cluster\" id=\"clust3\"><title>cluster_2</title>\n",
|
|
"<polygon fill=\"none\" points=\"30,-18 30,-103 82,-103 82,-18 30,-18\" stroke=\"red\"/>\n",
|
|
"</g>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g class=\"node\" id=\"node2\"><title>0</title>\n",
|
|
"<ellipse cx=\"56\" cy=\"-44\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"56\" y=\"-40.3\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge1\"><title>I->0</title>\n",
|
|
"<path d=\"M1.15491,-44C2.67247,-44 15.0966,-44 27.6277,-44\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"27.9419,-47.5001 37.9419,-44 27.9418,-40.5001 27.9419,-47.5001\" stroke=\"black\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 0->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge2\"><title>0->0</title>\n",
|
|
"<path d=\"M49.6208,-61.0373C48.3189,-70.8579 50.4453,-80 56,-80 59.4717,-80 61.6042,-76.4289 62.3975,-71.3529\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"65.8971,-71.031 62.3792,-61.0373 58.8971,-71.0435 65.8971,-71.031\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"37.5\" y=\"-83.8\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g class=\"node\" id=\"node3\"><title>1</title>\n",
|
|
"<ellipse cx=\"169\" cy=\"-151\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"169\" y=\"-147.3\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge3\"><title>0->1</title>\n",
|
|
"<path d=\"M69.7331,-56.2743C88.8864,-74.7373 125.282,-109.821 148.001,-131.721\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"145.787,-134.449 155.415,-138.869 150.645,-129.409 145.787,-134.449\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"109\" y=\"-120.8\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g class=\"node\" id=\"node6\"><title>4</title>\n",
|
|
"<ellipse cx=\"169\" cy=\"-34\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"169\" y=\"-30.3\">4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge4\"><title>0->4</title>\n",
|
|
"<path d=\"M74.3438,-42.4375C92.1015,-40.8377 119.96,-38.3279 140.683,-36.461\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"141.132,-39.9348 150.778,-35.5515 140.504,-32.963 141.132,-39.9348\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"92\" y=\"-44.8\">!a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge5\"><title>1->1</title>\n",
|
|
"<path d=\"M160.021,-166.916C157.679,-177.15 160.672,-187 169,-187 174.465,-187 177.633,-182.758 178.503,-176.949\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"181.996,-176.72 177.979,-166.916 175.005,-177.085 181.996,-176.72\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"153\" y=\"-205.8\">c & d</text>\n",
|
|
"<text fill=\"#5da5da\" font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"163.5\" y=\"-190.8\">\u24ff</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g class=\"node\" id=\"node4\"><title>3</title>\n",
|
|
"<ellipse cx=\"273.5\" cy=\"-193\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"273.5\" y=\"-189.3\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge7\"><title>1->3</title>\n",
|
|
"<path d=\"M186.813,-147.582C200.899,-145.553 221.183,-144.63 237,-152 245.041,-155.747 251.972,-162.289 257.52,-169.062\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"255.04,-171.596 263.789,-177.571 260.676,-167.444 255.04,-171.596\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"215\" y=\"-170.8\">!d</text>\n",
|
|
"<text fill=\"#5da5da\" font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"215.5\" y=\"-155.8\">\u24ff</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g class=\"node\" id=\"node5\"><title>2</title>\n",
|
|
"<ellipse cx=\"383\" cy=\"-193\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"383\" y=\"-189.3\">2</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge6\"><title>1->2</title>\n",
|
|
"<path d=\"M186.119,-144.99C209.781,-137.063 255.108,-125.3 292,-136 318.017,-143.546 343.725,-161.116 360.96,-174.769\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"359.202,-177.854 369.158,-181.479 363.636,-172.437 359.202,-177.854\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"255\" y=\"-154.8\">!c & d</text>\n",
|
|
"<text fill=\"#5da5da\" font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"268\" y=\"-139.8\">\u24ff</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge10\"><title>3->1</title>\n",
|
|
"<path d=\"M255.357,-192.817C241.226,-192.068 220.982,-189.587 205,-182 199.269,-179.279 193.775,-175.331 188.908,-171.157\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"191.066,-168.383 181.376,-164.098 186.279,-173.491 191.066,-168.383\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"205\" y=\"-194.8\">c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge12\"><title>3->3</title>\n",
|
|
"<path d=\"M264.521,-208.916C262.179,-219.15 265.172,-229 273.5,-229 278.965,-229 282.133,-224.758 283.003,-218.949\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"286.496,-218.72 282.479,-208.916 279.505,-219.085 286.496,-218.72\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"267.5\" y=\"-232.8\">!d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge11\"><title>3->2</title>\n",
|
|
"<path d=\"M291.772,-193C308.698,-193 334.762,-193 354.533,-193\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"354.771,-196.5 364.771,-193 354.771,-189.5 354.771,-196.5\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"310\" y=\"-196.8\">!c & d</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge8\"><title>2->1</title>\n",
|
|
"<path d=\"M370.041,-205.772C347.871,-227.825 298.67,-269.195 255,-253 219.738,-239.923 194.897,-202.083 181.517,-176.357\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"184.535,-174.566 176.952,-167.167 178.266,-177.68 184.535,-174.566\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"270\" y=\"-259.8\">c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge9\"><title>2->2</title>\n",
|
|
"<path d=\"M373.767,-208.541C371.169,-218.909 374.246,-229 383,-229 388.745,-229 392.045,-224.654 392.9,-218.736\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"396.379,-218.291 392.233,-208.541 389.394,-218.749 396.379,-218.291\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"377.5\" y=\"-232.8\">!c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge13\"><title>4->4</title>\n",
|
|
"<path d=\"M160.021,-49.916C157.679,-60.1504 160.672,-70 169,-70 174.465,-70 177.633,-65.7581 178.503,-59.9494\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"181.996,-59.7198 177.979,-49.916 175.005,-60.0851 181.996,-59.7198\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"169\" y=\"-73.8\">1</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>"
|
|
],
|
|
"text": [
|
|
"<IPython.core.display.SVG at 0x7f7be0058ef0>"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 5
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"f = spot.formula('a U b'); f"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"latex": [
|
|
"$a \\mathbin{\\mathsf{U}} b$"
|
|
],
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 6,
|
|
"text": [
|
|
"a U b"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 6
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"spot.translate(f)"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 7,
|
|
"svg": [
|
|
"<?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: G Pages: 1 -->\n",
|
|
"<svg width=\"169pt\" height=\"85pt\"\n",
|
|
" viewBox=\"0.00 0.00 169.00 85.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 81)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-81 165,-81 165,4 -4,4\"/>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node2\" class=\"node\"><title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"56\" cy=\"-22\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"56\" y=\"-18.3\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->1 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\"><title>I->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1.15491,-22C2.67247,-22 15.0966,-22 27.6277,-22\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"27.9419,-25.5001 37.9419,-22 27.9418,-18.5001 27.9419,-25.5001\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\"><title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M49.6208,-39.0373C48.3189,-48.8579 50.4453,-58 56,-58 59.4717,-58 61.6042,-54.4289 62.3975,-49.3529\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"65.8971,-49.031 62.3792,-39.0373 58.8971,-49.0435 65.8971,-49.031\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"37.5\" y=\"-61.8\" font-family=\"Times,serif\" font-size=\"14.00\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node3\" class=\"node\"><title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"139\" cy=\"-22\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<ellipse fill=\"none\" stroke=\"black\" cx=\"139\" cy=\"-22\" rx=\"22\" ry=\"22\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"139\" y=\"-18.3\" font-family=\"Times,serif\" font-size=\"14.00\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->0 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\"><title>1->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M74.178,-22C83.6095,-22 95.6007,-22 106.637,-22\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"106.811,-25.5001 116.811,-22 106.811,-18.5001 106.811,-25.5001\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"92\" y=\"-25.8\" font-family=\"Times,serif\" font-size=\"14.00\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->0 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\"><title>0->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M131.317,-42.9908C130.369,-53.0872 132.93,-62 139,-62 142.889,-62 145.337,-58.3422 146.346,-53.0587\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"149.846,-53.1023 146.683,-42.9908 142.85,-52.868 149.846,-53.1023\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"139\" y=\"-65.8\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text": [
|
|
"<spot_impl.tgba_digraph; proxy of <Swig Object of type 'std::shared_ptr< spot::tgba_digraph > *' at 0x7f7be0d10930> >"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 7
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"f.translate()"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 8,
|
|
"svg": [
|
|
"<?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: G Pages: 1 -->\n",
|
|
"<svg width=\"169pt\" height=\"85pt\"\n",
|
|
" viewBox=\"0.00 0.00 169.00 85.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 81)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-81 165,-81 165,4 -4,4\"/>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node2\" class=\"node\"><title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"56\" cy=\"-22\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"56\" y=\"-18.3\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->1 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\"><title>I->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1.15491,-22C2.67247,-22 15.0966,-22 27.6277,-22\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"27.9419,-25.5001 37.9419,-22 27.9418,-18.5001 27.9419,-25.5001\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\"><title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M49.6208,-39.0373C48.3189,-48.8579 50.4453,-58 56,-58 59.4717,-58 61.6042,-54.4289 62.3975,-49.3529\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"65.8971,-49.031 62.3792,-39.0373 58.8971,-49.0435 65.8971,-49.031\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"37.5\" y=\"-61.8\" font-family=\"Times,serif\" font-size=\"14.00\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node3\" class=\"node\"><title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"139\" cy=\"-22\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<ellipse fill=\"none\" stroke=\"black\" cx=\"139\" cy=\"-22\" rx=\"22\" ry=\"22\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"139\" y=\"-18.3\" font-family=\"Times,serif\" font-size=\"14.00\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->0 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\"><title>1->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M74.178,-22C83.6095,-22 95.6007,-22 106.637,-22\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"106.811,-25.5001 116.811,-22 106.811,-18.5001 106.811,-25.5001\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"92\" y=\"-25.8\" font-family=\"Times,serif\" font-size=\"14.00\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->0 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\"><title>0->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M131.317,-42.9908C130.369,-53.0872 132.93,-62 139,-62 142.889,-62 145.337,-58.3422 146.346,-53.0587\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"149.846,-53.1023 146.683,-42.9908 142.85,-52.868 149.846,-53.1023\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"139\" y=\"-65.8\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text": [
|
|
"<spot_impl.tgba_digraph; proxy of <Swig Object of type 'std::shared_ptr< spot::tgba_digraph > *' at 0x7f7be0d10b70> >"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 8
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"f.translate('mon')"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 9,
|
|
"svg": [
|
|
"<?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: G Pages: 1 -->\n",
|
|
"<svg width=\"161pt\" height=\"77pt\"\n",
|
|
" viewBox=\"0.00 0.00 161.00 77.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 73)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-73 157,-73 157,4 -4,4\"/>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node2\" class=\"node\"><title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"56\" cy=\"-18\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"56\" y=\"-14.3\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->1 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\"><title>I->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1.15491,-18C2.67247,-18 15.0966,-18 27.6277,-18\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"27.9419,-21.5001 37.9419,-18 27.9418,-14.5001 27.9419,-21.5001\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\"><title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M49.6208,-35.0373C48.3189,-44.8579 50.4453,-54 56,-54 59.4717,-54 61.6042,-50.4289 62.3975,-45.3529\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"65.8971,-45.031 62.3792,-35.0373 58.8971,-45.0435 65.8971,-45.031\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"37.5\" y=\"-57.8\" font-family=\"Times,serif\" font-size=\"14.00\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node3\" class=\"node\"><title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"135\" cy=\"-18\" rx=\"18\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"135\" y=\"-14.3\" font-family=\"Times,serif\" font-size=\"14.00\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->0 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\"><title>1->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M74.0888,-18C83.659,-18 95.8172,-18 106.677,-18\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"106.959,-21.5001 116.959,-18 106.959,-14.5001 106.959,-21.5001\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"92\" y=\"-21.8\" font-family=\"Times,serif\" font-size=\"14.00\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->0 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\"><title>0->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M128.266,-35.0373C126.892,-44.8579 129.137,-54 135,-54 138.665,-54 140.916,-50.4289 141.753,-45.3529\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"145.252,-45.0307 141.734,-35.0373 138.252,-45.0439 145.252,-45.0307\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"135\" y=\"-57.8\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text": [
|
|
"<spot_impl.tgba_digraph; proxy of <Swig Object of type 'std::shared_ptr< spot::tgba_digraph > *' at 0x7f7be0d10ae0> >"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 9
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"f = spot.formula('Ga | Gb | Gc'); f"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"latex": [
|
|
"$\\mathsf{G} a \\lor \\mathsf{G} b \\lor \\mathsf{G} c$"
|
|
],
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 10,
|
|
"text": [
|
|
"Ga | Gb | Gc"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 10
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"f.translate('ba', 'small').show('v')"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 11,
|
|
"svg": [
|
|
"<svg height=\"177pt\" viewBox=\"0.00 0.00 305.00 177.00\" width=\"305pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
|
"<g class=\"graph\" id=\"graph0\" transform=\"scale(1 1) rotate(0) translate(4 173)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" points=\"-4,4 -4,-173 301,-173 301,4 -4,4\" stroke=\"none\"/>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g class=\"node\" id=\"node2\"><title>0</title>\n",
|
|
"<ellipse cx=\"136\" cy=\"-113\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"136\" y=\"-109.3\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge1\"><title>I->0</title>\n",
|
|
"<path d=\"M136,-167.845C136,-166.328 136,-153.903 136,-141.372\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"139.5,-141.058 136,-131.058 132.5,-141.058 139.5,-141.058\" stroke=\"black\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g class=\"node\" id=\"node3\"><title>1</title>\n",
|
|
"<ellipse cx=\"31\" cy=\"-22\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"31\" cy=\"-22\" fill=\"none\" rx=\"31\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"31\" y=\"-18.3\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge2\"><title>0->1</title>\n",
|
|
"<path d=\"M119.594,-98.0938C103.169,-84.1718 77.609,-62.5067 58.1564,-46.0183\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"60.3951,-43.3277 50.5036,-39.5316 55.8689,-48.6675 60.3951,-43.3277\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"96.5\" y=\"-65.8\">c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g class=\"node\" id=\"node4\"><title>2</title>\n",
|
|
"<ellipse cx=\"136\" cy=\"-22\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"136\" cy=\"-22\" fill=\"none\" rx=\"31\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"136\" y=\"-18.3\">2</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge3\"><title>0->2</title>\n",
|
|
"<path d=\"M136,-94.8399C136,-83.4407 136,-68.1336 136,-54.5781\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"139.5,-54.1905 136,-44.1905 132.5,-54.1906 139.5,-54.1905\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"139.5\" y=\"-65.8\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g class=\"node\" id=\"node5\"><title>3</title>\n",
|
|
"<ellipse cx=\"241\" cy=\"-22\" fill=\"#ffffaa\" rx=\"27\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"241\" cy=\"-22\" fill=\"none\" rx=\"31\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"241\" y=\"-18.3\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge4\"><title>0->3</title>\n",
|
|
"<path d=\"M152.406,-98.0938C168.831,-84.1718 194.391,-62.5067 213.844,-46.0183\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"216.131,-48.6675 221.496,-39.5316 211.605,-43.3277 216.131,-48.6675\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"197.5\" y=\"-65.8\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge5\"><title>1->1</title>\n",
|
|
"<path d=\"M59.6885,-30.5913C70.7806,-30.9731 80,-28.1094 80,-22 80,-17.8953 75.8382,-15.2556 69.7429,-14.0811\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"69.8998,-10.5839 59.6885,-13.4087 69.4326,-17.5683 69.8998,-10.5839\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"83.5\" y=\"-18.3\">c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge6\"><title>2->2</title>\n",
|
|
"<path d=\"M164.689,-30.5913C175.781,-30.9731 185,-28.1094 185,-22 185,-17.8953 180.838,-15.2556 174.743,-14.0811\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"174.9,-10.5839 164.689,-13.4087 174.433,-17.5683 174.9,-10.5839\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"188.5\" y=\"-18.3\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge7\"><title>3->3</title>\n",
|
|
"<path d=\"M269.689,-30.5913C280.781,-30.9731 290,-28.1094 290,-22 290,-17.8953 285.838,-15.2556 279.743,-14.0811\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"279.9,-10.5839 269.689,-13.4087 279.433,-17.5683 279.9,-10.5839\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"293.5\" y=\"-18.3\">b</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>"
|
|
],
|
|
"text": [
|
|
"<IPython.core.display.SVG at 0x7f7bcacc95c0>"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 11
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"f.translate('ba', 'det').show('v.')"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 12,
|
|
"svg": [
|
|
"<svg height=\"280pt\" viewBox=\"0.00 0.00 591.82 280.00\" width=\"592pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
|
"<g class=\"graph\" id=\"graph0\" transform=\"scale(1 1) rotate(0) translate(4 276)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" points=\"-4,4 -4,-276 587.821,-276 587.821,4 -4,4\" stroke=\"none\"/>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 6 -->\n",
|
|
"<g class=\"node\" id=\"node2\"><title>6</title>\n",
|
|
"<ellipse cx=\"277.821\" cy=\"-212\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"277.821\" cy=\"-212\" fill=\"none\" rx=\"22\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"277.821\" y=\"-208.3\">6</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->6 -->\n",
|
|
"<g class=\"edge\" id=\"edge1\"><title>I->6</title>\n",
|
|
"<path d=\"M277.821,-270.834C277.821,-269.282 277.821,-257.111 277.821,-244.332\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"281.321,-244.144 277.821,-234.144 274.321,-244.144 281.321,-244.144\" stroke=\"black\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 6->6 -->\n",
|
|
"<g class=\"edge\" id=\"edge20\"><title>6->6</title>\n",
|
|
"<path d=\"M298.811,-219.317C308.908,-220.22 317.821,-217.781 317.821,-212 317.821,-208.296 314.163,-205.964 308.879,-205.004\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"308.918,-201.504 298.811,-204.683 308.695,-208.5 308.918,-201.504\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"317.821\" y=\"-208.3\">a & b & c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0 -->\n",
|
|
"<g class=\"node\" id=\"node3\"><title>0</title>\n",
|
|
"<ellipse cx=\"96.8206\" cy=\"-22\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"96.8206\" cy=\"-22\" fill=\"none\" rx=\"22\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"96.8206\" y=\"-18.3\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge14\"><title>6->0</title>\n",
|
|
"<path d=\"M255.721,-208.524C196.826,-201.426 38.4848,-178.913 7.82057,-139 -19.6942,-103.186 34.0271,-61.1222 69.3557,-38.795\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"71.1909,-41.7753 77.8807,-33.5596 67.5277,-35.8104 71.1909,-41.7753\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"7.82057\" y=\"-113.3\">!a & !b & c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g class=\"node\" id=\"node4\"><title>1</title>\n",
|
|
"<ellipse cx=\"323.821\" cy=\"-22\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"323.821\" cy=\"-22\" fill=\"none\" rx=\"22\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"323.821\" y=\"-18.3\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge15\"><title>6->1</title>\n",
|
|
"<path d=\"M293.596,-196.107C299.73,-189.363 306.154,-180.909 309.821,-172 325.565,-133.743 327.14,-85.434 326.081,-54.3777\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"329.567,-53.9873 325.615,-44.1569 322.574,-54.3058 329.567,-53.9873\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"324.821\" y=\"-113.3\">!a & b & !c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g class=\"node\" id=\"node5\"><title>2</title>\n",
|
|
"<ellipse cx=\"475.821\" cy=\"-22\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"475.821\" cy=\"-22\" fill=\"none\" rx=\"22\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"475.821\" y=\"-18.3\">2</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge16\"><title>6->2</title>\n",
|
|
"<path d=\"M299.754,-207.718C353.012,-199.238 486.572,-174.735 510.821,-139 529.65,-111.25 511.455,-73.0765 495.046,-48.2235\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"497.724,-45.9426 489.153,-39.7138 491.969,-49.9277 497.724,-45.9426\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"517.821\" y=\"-113.3\">a & !b & !c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g class=\"node\" id=\"node6\"><title>3</title>\n",
|
|
"<ellipse cx=\"104.821\" cy=\"-117\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"104.821\" cy=\"-117\" fill=\"none\" rx=\"22\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"104.821\" y=\"-113.3\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge17\"><title>6->3</title>\n",
|
|
"<path d=\"M256.67,-205.151C235.049,-198.702 200.895,-187.194 173.821,-172 157.607,-162.901 141.147,-150.181 128.371,-139.372\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"130.4,-136.498 120.548,-132.602 125.819,-141.792 130.4,-136.498\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"173.821\" y=\"-160.8\">!a & b & c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g class=\"node\" id=\"node7\"><title>4</title>\n",
|
|
"<ellipse cx=\"429.821\" cy=\"-117\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"429.821\" cy=\"-117\" fill=\"none\" rx=\"22\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"429.821\" y=\"-113.3\">4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge18\"><title>6->4</title>\n",
|
|
"<path d=\"M296.155,-199.782C322.631,-183.583 371.758,-153.525 402.512,-134.709\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"404.717,-137.462 411.421,-129.258 401.064,-131.491 404.717,-137.462\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"362.821\" y=\"-160.8\">a & b & !c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5 -->\n",
|
|
"<g class=\"node\" id=\"node8\"><title>5</title>\n",
|
|
"<ellipse cx=\"216.821\" cy=\"-117\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"black\"/>\n",
|
|
"<ellipse cx=\"216.821\" cy=\"-117\" fill=\"none\" rx=\"22\" ry=\"22\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"middle\" x=\"216.821\" y=\"-113.3\">5</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->5 -->\n",
|
|
"<g class=\"edge\" id=\"edge19\"><title>6->5</title>\n",
|
|
"<path d=\"M264.723,-194.191C259.599,-187.412 253.776,-179.446 248.821,-172 243.19,-163.539 237.415,-154.075 232.347,-145.463\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"235.215,-143.431 227.167,-136.54 229.161,-146.945 235.215,-143.431\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"248.821\" y=\"-160.8\">a & !b & c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge2\"><title>0->0</title>\n",
|
|
"<path d=\"M117.401,-30.3702C127.665,-31.5284 136.821,-28.7383 136.821,-22 136.821,-17.6833 133.063,-14.9869 127.664,-13.9109\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"127.493,-10.405 117.401,-13.6298 127.302,-17.4024 127.493,-10.405\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"136.821\" y=\"-18.3\">c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge3\"><title>1->1</title>\n",
|
|
"<path d=\"M344.401,-30.3702C354.665,-31.5284 363.821,-28.7383 363.821,-22 363.821,-17.6833 360.063,-14.9869 354.664,-13.9109\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"354.493,-10.405 344.401,-13.6298 354.302,-17.4024 354.493,-10.405\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"363.821\" y=\"-18.3\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge4\"><title>2->2</title>\n",
|
|
"<path d=\"M496.401,-30.3702C506.665,-31.5284 515.821,-28.7383 515.821,-22 515.821,-17.6833 512.063,-14.9869 506.664,-13.9109\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"506.493,-10.405 496.401,-13.6298 506.302,-17.4024 506.493,-10.405\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"515.821\" y=\"-18.3\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge5\"><title>3->0</title>\n",
|
|
"<path d=\"M100.426,-95.0356C99.3798,-89.2207 98.3997,-82.8875 97.8206,-77 97.0968,-69.6426 96.724,-61.6951 96.5546,-54.2187\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"100.053,-54.0318 96.4353,-44.0737 93.0533,-54.1142 100.053,-54.0318\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"97.8206\" y=\"-65.8\">!b & c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge6\"><title>3->1</title>\n",
|
|
"<path d=\"M118.176,-99.186C129.593,-85.226 145.463,-66.8933 153.821,-62 197.157,-36.6256 255.69,-27.7601 291.543,-24.6629\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"292.194,-28.1235 301.899,-23.8749 291.662,-21.1437 292.194,-28.1235\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"153.821\" y=\"-65.8\">b & !c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge7\"><title>3->3</title>\n",
|
|
"<path d=\"M125.401,-125.37C135.665,-126.528 144.821,-123.738 144.821,-117 144.821,-112.683 141.063,-109.987 135.664,-108.911\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"135.493,-105.405 125.401,-108.63 135.302,-112.402 135.493,-105.405\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"144.821\" y=\"-113.3\">b & c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge8\"><title>4->1</title>\n",
|
|
"<path d=\"M420.21,-97.1109C413.838,-85.9186 404.665,-72.013 393.821,-62 382.059,-51.1404 366.728,-42.1637 353.413,-35.5713\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"354.69,-32.3041 344.153,-31.1996 351.702,-38.634 354.69,-32.3041\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"405.821\" y=\"-65.8\">!a & b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge9\"><title>4->2</title>\n",
|
|
"<path d=\"M441.69,-98.1028C445.777,-91.5928 450.225,-84.0908 453.821,-77 457.791,-69.1689 461.597,-60.4456 464.893,-52.3336\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"468.223,-53.4297 468.639,-42.843 461.712,-50.86 468.223,-53.4297\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"459.821\" y=\"-65.8\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge10\"><title>4->4</title>\n",
|
|
"<path d=\"M450.401,-125.37C460.665,-126.528 469.821,-123.738 469.821,-117 469.821,-112.683 466.063,-109.987 460.664,-108.911\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"460.493,-105.405 450.401,-108.63 460.302,-112.402 460.493,-105.405\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"469.821\" y=\"-113.3\">a & b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge11\"><title>5->0</title>\n",
|
|
"<path d=\"M212.569,-95.3163C209.347,-84.2043 203.876,-70.9826 194.821,-62 176.833,-44.1578 149.662,-34.2098 128.489,-28.8346\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"129.176,-25.401 118.644,-26.5487 127.593,-32.2197 129.176,-25.401\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"204.821\" y=\"-65.8\">!a & c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge12\"><title>5->2</title>\n",
|
|
"<path d=\"M237.087,-107.526C263.687,-96.5156 311.919,-76.937 353.821,-62 384.748,-50.9751 420.585,-39.6937 445.38,-32.1195\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"446.406,-35.4656 454.958,-29.2102 444.372,-28.7677 446.406,-35.4656\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"353.821\" y=\"-65.8\">a & !c</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->5 -->\n",
|
|
"<g class=\"edge\" id=\"edge13\"><title>5->5</title>\n",
|
|
"<path d=\"M237.401,-125.37C247.665,-126.528 256.821,-123.738 256.821,-117 256.821,-112.683 253.063,-109.987 247.664,-108.911\" fill=\"none\" stroke=\"black\"/>\n",
|
|
"<polygon fill=\"black\" points=\"247.493,-105.405 237.401,-108.63 247.302,-112.402 247.493,-105.405\" stroke=\"black\"/>\n",
|
|
"<text font-family=\"Times,serif\" font-size=\"14.00\" text-anchor=\"start\" x=\"256.821\" y=\"-113.3\">a & c</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>"
|
|
],
|
|
"text": [
|
|
"<IPython.core.display.SVG at 0x7f7bcacdebe0>"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 12
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": []
|
|
}
|
|
],
|
|
"metadata": {}
|
|
}
|
|
]
|
|
} |