python: render <svg> via _repr_html_
Work around a recent decision in Jupyter Lab and Notebook to render <svg> is inline <img>, breaking tooltips or text selection. (Rerendering all notebooks was painful.) * NEWS: Mention the change. * python/spot/__init__.py: Add a _repr_html_ method to all classes that had a _repr_svg_. It seems Jupyter will use _repr_html_ by default. * python/spot/jupyter.py: SVG replace the _repr_svg_ method by a _repr_html. * tests/python/_altscc.ipynb, tests/python/_autparserr.ipynb, tests/python/_aux.ipynb, tests/python/_mealy.ipynb, tests/python/_partitioned_relabel.ipynb, tests/python/_product_susp.ipynb, tests/python/_product_weak.ipynb, tests/python/_synthesis.ipynb, tests/python/aliases.ipynb, tests/python/alternation.ipynb, tests/python/atva16-fig2a.ipynb, tests/python/atva16-fig2b.ipynb, tests/python/automata-io.ipynb, tests/python/automata.ipynb, tests/python/cav22-figs.ipynb, tests/python/contains.ipynb, tests/python/decompose.ipynb, tests/python/formulas.ipynb, tests/python/games.ipynb, tests/python/gen.ipynb, tests/python/highlighting.ipynb, tests/python/ltsmin-dve.ipynb, tests/python/ltsmin-pml.ipynb, tests/python/parity.ipynb, tests/python/product.ipynb, tests/python/randaut.ipynb, tests/python/satmin.ipynb, tests/python/stutter-inv.ipynb, tests/python/synthesis.ipynb, tests/python/testingaut.ipynb, tests/python/twagraph-internals.ipynb, tests/python/word.ipynb, tests/python/zlktree.ipynb: Update all notebooks.
This commit is contained in:
parent
4cf7503fff
commit
3034e8fcc3
36 changed files with 43249 additions and 8585 deletions
|
|
@ -140,8 +140,109 @@
|
|||
"</g>\n",
|
||||
"</svg>\n"
|
||||
],
|
||||
"text/html": [
|
||||
"<?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.43.0 (0)\n",
|
||||
" -->\n",
|
||||
"<!-- Pages: 1 -->\n",
|
||||
"<svg width=\"196pt\" height=\"222pt\"\n",
|
||||
" viewBox=\"0.00 0.00 196.00 221.51\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
||||
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1.0 1.0) rotate(0) translate(4 217.51)\">\n",
|
||||
"<polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-217.51 192,-217.51 192,4 -4,4\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"43.5\" y=\"-199.31\" font-family=\"Lato\" font-size=\"14.00\">Fin(</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"66.5\" y=\"-199.31\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"82.5\" y=\"-199.31\" font-family=\"Lato\" font-size=\"14.00\">) & Inf(</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"124.5\" y=\"-199.31\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"140.5\" y=\"-199.31\" font-family=\"Lato\" font-size=\"14.00\">)</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"66.5\" y=\"-185.31\" font-family=\"Lato\" font-size=\"14.00\">[Rabin 1]</text>\n",
|
||||
"<!-- I -->\n",
|
||||
"<!-- 0 -->\n",
|
||||
"<g id=\"node2\" class=\"node\">\n",
|
||||
"<title>0</title>\n",
|
||||
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"56\" cy=\"-63.51\" rx=\"18\" ry=\"18\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"56\" y=\"-59.81\" font-family=\"Lato\" font-size=\"14.00\">0</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- I->0 -->\n",
|
||||
"<g id=\"edge1\" class=\"edge\">\n",
|
||||
"<title>I->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M1.15,-63.51C2.79,-63.51 17.15,-63.51 30.63,-63.51\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"37.94,-63.51 30.94,-66.66 34.44,-63.51 30.94,-63.51 30.94,-63.51 30.94,-63.51 34.44,-63.51 30.94,-60.36 37.94,-63.51 37.94,-63.51\"/>\n",
|
||||
"</g>\n",
|
||||
"<!-- 0->0 -->\n",
|
||||
"<g id=\"edge2\" class=\"edge\">\n",
|
||||
"<title>0->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M52.76,-81.29C52.21,-90.82 53.29,-99.51 56,-99.51 57.99,-99.51 59.1,-94.83 59.33,-88.56\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"59.24,-81.29 62.48,-88.25 59.28,-84.79 59.33,-88.29 59.33,-88.29 59.33,-88.29 59.28,-84.79 56.18,-88.33 59.24,-81.29 59.24,-81.29\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"38\" y=\"-118.31\" font-family=\"Lato\" font-size=\"14.00\">a & !b</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"48\" y=\"-103.31\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 0->0 -->\n",
|
||||
"<g id=\"edge3\" class=\"edge\">\n",
|
||||
"<title>0->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M50.99,-81.09C47.55,-102.23 49.21,-129.51 56,-129.51 62.04,-129.51 64.03,-107.87 61.96,-88.2\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"61.01,-81.09 65.06,-87.61 61.47,-84.56 61.93,-88.03 61.93,-88.03 61.93,-88.03 61.47,-84.56 58.81,-88.44 61.01,-81.09 61.01,-81.09\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"40\" y=\"-148.31\" font-family=\"Lato\" font-size=\"14.00\">a & b</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"48\" y=\"-133.31\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 1 -->\n",
|
||||
"<g id=\"node3\" class=\"node\">\n",
|
||||
"<title>1</title>\n",
|
||||
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"168\" cy=\"-63.51\" rx=\"18\" ry=\"18\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"168\" y=\"-59.81\" font-family=\"Lato\" font-size=\"14.00\">1</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 0->1 -->\n",
|
||||
"<g id=\"edge4\" class=\"edge\">\n",
|
||||
"<title>0->1</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M63.7,-80.29C69.35,-91.94 78.65,-106.56 92,-113.51 107.77,-121.72 116.23,-121.72 132,-113.51 143.05,-107.76 151.34,-96.74 157.06,-86.51\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"160.3,-80.29 159.86,-87.95 158.68,-83.39 157.07,-86.5 157.07,-86.5 157.07,-86.5 158.68,-83.39 154.27,-85.04 160.3,-80.29 160.3,-80.29\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"94\" y=\"-123.31\" font-family=\"Lato\" font-size=\"14.00\">!a & b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 0->1 -->\n",
|
||||
"<g id=\"edge5\" class=\"edge\">\n",
|
||||
"<title>0->1</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M74.19,-63.51C92.59,-63.51 121.95,-63.51 142.71,-63.51\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"149.93,-63.51 142.93,-66.66 146.43,-63.51 142.93,-63.51 142.93,-63.51 142.93,-63.51 146.43,-63.51 142.93,-60.36 149.93,-63.51 149.93,-63.51\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"92\" y=\"-82.31\" font-family=\"Lato\" font-size=\"14.00\">!a & !b</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"104\" y=\"-67.31\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 1->0 -->\n",
|
||||
"<g id=\"edge6\" class=\"edge\">\n",
|
||||
"<title>1->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M152.69,-53.64C146.6,-50.02 139.24,-46.35 132,-44.51 114.77,-40.13 109.23,-40.13 92,-44.51 87.14,-45.74 82.22,-47.81 77.67,-50.13\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"71.31,-53.64 75.91,-47.5 74.37,-51.95 77.44,-50.25 77.44,-50.25 77.44,-50.25 74.37,-51.95 78.96,-53.01 71.31,-53.64 71.31,-53.64\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"96\" y=\"-48.31\" font-family=\"Lato\" font-size=\"14.00\">a & b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 1->0 -->\n",
|
||||
"<g id=\"edge7\" class=\"edge\">\n",
|
||||
"<title>1->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M161.68,-46.39C156.48,-32.88 147.1,-14.96 132,-6.51 116.49,2.17 107.51,2.17 92,-6.51 79.26,-13.64 70.59,-27.51 65.07,-39.79\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"62.32,-46.39 62.1,-38.71 63.66,-43.16 65.01,-39.93 65.01,-39.93 65.01,-39.93 63.66,-43.16 67.92,-41.14 62.32,-46.39 62.32,-46.39\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"94\" y=\"-25.31\" font-family=\"Lato\" font-size=\"14.00\">a & !b</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"104\" y=\"-10.31\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 1->1 -->\n",
|
||||
"<g id=\"edge8\" class=\"edge\">\n",
|
||||
"<title>1->1</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M163,-80.92C162.07,-90.6 163.73,-99.51 168,-99.51 171.13,-99.51 172.86,-94.7 173.19,-88.32\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"173,-80.92 176.33,-87.83 173.09,-84.42 173.18,-87.92 173.18,-87.92 173.18,-87.92 173.09,-84.42 170.03,-88 173,-80.92 173,-80.92\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"148\" y=\"-118.31\" font-family=\"Lato\" font-size=\"14.00\">!a & !b</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"160\" y=\"-103.31\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 1->1 -->\n",
|
||||
"<g id=\"edge9\" class=\"edge\">\n",
|
||||
"<title>1->1</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M160.46,-80.11C154.77,-101.37 157.28,-129.51 168,-129.51 177.59,-129.51 180.61,-107 177.06,-87.02\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"175.54,-80.11 180.12,-86.26 176.29,-83.52 177.05,-86.94 177.05,-86.94 177.05,-86.94 176.29,-83.52 173.97,-87.62 175.54,-80.11 175.54,-80.11\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"150\" y=\"-148.31\" font-family=\"Lato\" font-size=\"14.00\">!a & b</text>\n",
|
||||
"<text text-anchor=\"start\" x=\"160\" y=\"-133.31\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
||||
"</g>\n",
|
||||
"</g>\n",
|
||||
"</svg>\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"<spot.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7fb6a430f5a0> >"
|
||||
"<spot.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7fb3e849e6a0> >"
|
||||
]
|
||||
},
|
||||
"execution_count": 2,
|
||||
|
|
@ -162,7 +263,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"image/svg+xml": [
|
||||
"text/html": [
|
||||
"<?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",
|
||||
|
|
@ -717,7 +818,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"image/svg+xml": [
|
||||
"text/html": [
|
||||
"<?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",
|
||||
|
|
@ -1273,8 +1374,275 @@
|
|||
"</g>\n",
|
||||
"</svg>\n"
|
||||
],
|
||||
"text/html": [
|
||||
"<?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.43.0 (0)\n",
|
||||
" -->\n",
|
||||
"<!-- Pages: 1 -->\n",
|
||||
"<svg width=\"729pt\" height=\"185pt\"\n",
|
||||
" viewBox=\"0.00 0.00 729.00 185.20\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
||||
"<g id=\"graph0\" class=\"graph\" transform=\"scale(0.7462686567164178 0.7462686567164178) rotate(0) translate(4 244.08)\">\n",
|
||||
"<polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-244.08 972.53,-244.08 972.53,4 -4,4\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"462.77\" y=\"-224.88\" font-family=\"Lato\" font-size=\"14.00\">[Büchi]</text>\n",
|
||||
"<!-- I -->\n",
|
||||
"<!-- 4 -->\n",
|
||||
"<g id=\"node2\" class=\"node\">\n",
|
||||
"<title>4</title>\n",
|
||||
"<ellipse fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" cx=\"60\" cy=\"-175.08\" rx=\"18\" ry=\"18\"/>\n",
|
||||
"<ellipse fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" cx=\"60\" cy=\"-175.08\" rx=\"22\" ry=\"22\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"60\" y=\"-171.38\" font-family=\"Lato\" font-size=\"14.00\">4</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- I->4 -->\n",
|
||||
"<g id=\"edge1\" class=\"edge\">\n",
|
||||
"<title>I->4</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M1.17,-175.08C2.84,-175.08 16.88,-175.08 30.71,-175.08\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"37.86,-175.08 30.86,-178.23 34.36,-175.08 30.86,-175.08 30.86,-175.08 30.86,-175.08 34.36,-175.08 30.86,-171.93 37.86,-175.08 37.86,-175.08\"/>\n",
|
||||
"</g>\n",
|
||||
"<!-- 7 -->\n",
|
||||
"<g id=\"node6\" class=\"node\">\n",
|
||||
"<title>7</title>\n",
|
||||
"<polygon fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"369.81,-193.14 346.85,-175.08 369.81,-157.02 392.76,-175.08 369.81,-193.14\"/>\n",
|
||||
"<polygon fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"369.81,-198.24 340.37,-175.08 369.81,-151.92 399.24,-175.08 369.81,-198.24\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"369.81\" y=\"-171.38\" font-family=\"Lato\" font-size=\"14.00\">7</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 4->7 -->\n",
|
||||
"<g id=\"edge9\" class=\"edge\">\n",
|
||||
"<title>4->7</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M82.16,-175.08C134.08,-175.08 268.26,-175.08 332.92,-175.08\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"340.08,-175.08 333.08,-178.23 336.58,-175.08 333.08,-175.08 333.08,-175.08 333.08,-175.08 336.58,-175.08 333.08,-171.93 340.08,-175.08 340.08,-175.08\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"219.84\" y=\"-178.88\" font-family=\"Lato\" font-size=\"14.00\">!a</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 12 -->\n",
|
||||
"<g id=\"node13\" class=\"node\">\n",
|
||||
"<title>12</title>\n",
|
||||
"<polygon fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"163.17,-142.2 132.7,-124.08 163.17,-105.96 193.64,-124.08 163.17,-142.2\"/>\n",
|
||||
"<polygon fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"163.17,-146.88 124.83,-124.08 163.17,-101.28 201.51,-124.08 163.17,-146.88\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"163.17\" y=\"-120.38\" font-family=\"Lato\" font-size=\"14.00\">12</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 4->12 -->\n",
|
||||
"<g id=\"edge10\" class=\"edge\">\n",
|
||||
"<title>4->12</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M77.35,-161.21C84.06,-155.98 92.11,-150.29 100,-146.08 109.36,-141.09 120.08,-136.83 129.96,-133.43\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"136.64,-131.21 130.99,-136.41 133.32,-132.32 129.99,-133.42 129.99,-133.42 129.99,-133.42 133.32,-132.32 129,-130.43 136.64,-131.21 136.64,-131.21\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"100\" y=\"-149.88\" font-family=\"Lato\" font-size=\"14.00\">a</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 0 -->\n",
|
||||
"<g id=\"node3\" class=\"node\">\n",
|
||||
"<title>0</title>\n",
|
||||
"<ellipse fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" cx=\"842.6\" cy=\"-43.08\" rx=\"18\" ry=\"18\"/>\n",
|
||||
"<ellipse fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" cx=\"842.6\" cy=\"-43.08\" rx=\"22\" ry=\"22\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"842.6\" y=\"-39.38\" font-family=\"Lato\" font-size=\"14.00\">0</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 6 -->\n",
|
||||
"<g id=\"node4\" class=\"node\">\n",
|
||||
"<title>6</title>\n",
|
||||
"<polygon fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"939.07,-61.14 916.11,-43.08 939.07,-25.02 962.02,-43.08 939.07,-61.14\"/>\n",
|
||||
"<polygon fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"939.07,-66.24 909.63,-43.08 939.07,-19.92 968.5,-43.08 939.07,-66.24\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"939.07\" y=\"-39.38\" font-family=\"Lato\" font-size=\"14.00\">6</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 0->6 -->\n",
|
||||
"<g id=\"edge2\" class=\"edge\">\n",
|
||||
"<title>0->6</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M865.04,-43.08C876.05,-43.08 889.76,-43.08 902.32,-43.08\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"909.55,-43.08 902.55,-46.23 906.05,-43.08 902.55,-43.08 902.55,-43.08 902.55,-43.08 906.05,-43.08 902.55,-39.93 909.55,-43.08 909.55,-43.08\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"882.6\" y=\"-46.88\" font-family=\"Lato\" font-size=\"14.00\">1</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 6->0 -->\n",
|
||||
"<g id=\"edge12\" class=\"edge\">\n",
|
||||
"<title>6->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" d=\"M922.3,-32.68C911.34,-26.69 896.29,-20.92 882.6,-24.08 877.87,-25.17 873.04,-26.92 868.47,-28.92\"/>\n",
|
||||
"<polygon fill=\"#33a02c\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"862,-32 866.98,-26.15 864.95,-30.04 868.11,-28.54 868.33,-28.99 868.54,-29.45 865.38,-30.95 869.68,-31.84 862,-32 862,-32\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"882.6\" y=\"-27.88\" font-family=\"Lato\" font-size=\"14.00\">1</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 1 -->\n",
|
||||
"<g id=\"node5\" class=\"node\">\n",
|
||||
"<title>1</title>\n",
|
||||
"<ellipse fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" cx=\"271.34\" cy=\"-124.08\" rx=\"18\" ry=\"18\"/>\n",
|
||||
"<ellipse fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" cx=\"271.34\" cy=\"-124.08\" rx=\"22\" ry=\"22\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"266.84\" y=\"-120.38\" font-family=\"Lato\" font-size=\"14.00\">1</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 1->7 -->\n",
|
||||
"<g id=\"edge3\" class=\"edge\">\n",
|
||||
"<title>1->7</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M292.12,-132.01C301.44,-135.94 312.61,-140.94 322.34,-146.08 330.62,-150.46 339.4,-155.75 347.07,-160.62\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"353.22,-164.57 345.63,-163.44 350.28,-162.68 347.34,-160.79 347.34,-160.79 347.34,-160.79 350.28,-162.68 349.04,-158.14 353.22,-164.57 353.22,-164.57\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"311.34\" y=\"-149.88\" font-family=\"Lato\" font-size=\"14.00\">!a</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 8 -->\n",
|
||||
"<g id=\"node7\" class=\"node\">\n",
|
||||
"<title>8</title>\n",
|
||||
"<polygon fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"552.6,-41.14 529.65,-23.08 552.6,-5.02 575.56,-23.08 552.6,-41.14\"/>\n",
|
||||
"<polygon fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"552.6,-46.24 523.17,-23.08 552.6,0.08 582.03,-23.08 552.6,-46.24\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"552.6\" y=\"-19.38\" font-family=\"Lato\" font-size=\"14.00\">8</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 1->8 -->\n",
|
||||
"<g id=\"edge4\" class=\"edge\">\n",
|
||||
"<title>1->8</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M293.38,-121.24C323.34,-116.78 379.72,-106.87 425.27,-90.08 463.76,-75.89 505.19,-52.11 529.74,-37.02\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"535.9,-33.2 531.61,-39.57 532.92,-35.05 529.95,-36.89 529.95,-36.89 529.95,-36.89 532.92,-35.05 528.29,-34.22 535.9,-33.2 535.9,-33.2\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"417.77\" y=\"-96.88\" font-family=\"Lato\" font-size=\"14.00\">a</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 7->4 -->\n",
|
||||
"<g id=\"edge14\" class=\"edge\">\n",
|
||||
"<title>7->4</title>\n",
|
||||
"<path fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" d=\"M349.18,-182.28C341,-184.94 331.33,-187.66 322.34,-189.08 224.74,-204.56 197.21,-206.84 100,-189.08 95.83,-188.32 91.51,-187.17 87.34,-185.84\"/>\n",
|
||||
"<polygon fill=\"#33a02c\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"80.49,-183.49 88.14,-182.79 83.97,-184.16 87.28,-185.29 87.11,-185.77 86.95,-186.24 83.64,-185.1 86.09,-188.75 80.49,-183.49 80.49,-183.49\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"219.34\" y=\"-205.88\" font-family=\"Lato\" font-size=\"14.00\">!b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 2 -->\n",
|
||||
"<g id=\"node8\" class=\"node\">\n",
|
||||
"<title>2</title>\n",
|
||||
"<ellipse fill=\"#ffffaa\" stroke=\"#e31a1c\" stroke-width=\"2\" cx=\"461.27\" cy=\"-175.08\" rx=\"18\" ry=\"18\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"461.27\" y=\"-171.38\" font-family=\"Lato\" font-size=\"14.00\">2</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 7->2 -->\n",
|
||||
"<g id=\"edge13\" class=\"edge\">\n",
|
||||
"<title>7->2</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M399.61,-175.08C411.42,-175.08 424.95,-175.08 436.22,-175.08\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"443.26,-175.08 436.26,-178.23 439.76,-175.08 436.26,-175.08 436.26,-175.08 436.26,-175.08 439.76,-175.08 436.26,-171.93 443.26,-175.08 443.26,-175.08\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"417.27\" y=\"-178.88\" font-family=\"Lato\" font-size=\"14.00\">b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 8->0 -->\n",
|
||||
"<g id=\"edge15\" class=\"edge\">\n",
|
||||
"<title>8->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" d=\"M576.39,-18.41C617.07,-10.95 704.6,1.18 775.6,-16.08 789.4,-19.44 804.09,-25.21 816.1,-30.56\"/>\n",
|
||||
"<polygon fill=\"#33a02c\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"822.47,-33.47 814.8,-33.43 819.08,-32.47 815.9,-31.01 816.11,-30.56 816.31,-30.11 819.5,-31.56 817.41,-27.69 822.47,-33.47 822.47,-33.47\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"686.94\" y=\"-11.88\" font-family=\"Lato\" font-size=\"14.00\">b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 5 -->\n",
|
||||
"<g id=\"node14\" class=\"node\">\n",
|
||||
"<title>5</title>\n",
|
||||
"<ellipse fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" cx=\"648.94\" cy=\"-39.08\" rx=\"18\" ry=\"18\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"648.94\" y=\"-35.38\" font-family=\"Lato\" font-size=\"14.00\">5</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 8->5 -->\n",
|
||||
"<g id=\"edge16\" class=\"edge\">\n",
|
||||
"<title>8->5</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M577.41,-27.12C591.63,-29.53 609.64,-32.59 623.91,-35.01\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"630.98,-36.21 623.55,-38.14 627.53,-35.62 624.08,-35.03 624.08,-35.03 624.08,-35.03 627.53,-35.62 624.61,-31.93 630.98,-36.21 630.98,-36.21\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"600.94\" y=\"-36.88\" font-family=\"Lato\" font-size=\"14.00\">!b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 9 -->\n",
|
||||
"<g id=\"node9\" class=\"node\">\n",
|
||||
"<title>9</title>\n",
|
||||
"<polygon fill=\"#ffffaa\" stroke=\"#e31a1c\" stroke-width=\"2\" points=\"745.27,-193.08 722.31,-175.08 745.27,-157.08 768.23,-175.08 745.27,-193.08\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"745.27\" y=\"-171.38\" font-family=\"Lato\" font-size=\"14.00\">9</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 2->9 -->\n",
|
||||
"<g id=\"edge5\" class=\"edge\">\n",
|
||||
"<title>2->9</title>\n",
|
||||
"<path fill=\"none\" stroke=\"#e31a1c\" stroke-width=\"2\" d=\"M477.93,-182.75C483.84,-185.26 490.73,-187.76 497.27,-189.08 584.24,-206.7 609.27,-202.84 696.94,-189.08 705.36,-187.76 714.39,-185.35 722.28,-182.9\"/>\n",
|
||||
"<polygon fill=\"#e31a1c\" stroke=\"#e31a1c\" stroke-width=\"2\" points=\"729.15,-180.66 723.47,-185.82 725.98,-182.22 722.65,-183.3 722.5,-182.83 722.34,-182.35 725.67,-181.27 721.52,-179.83 729.15,-180.66 729.15,-180.66\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"601.44\" y=\"-204.88\" font-family=\"Lato\" font-size=\"14.00\">!a</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 10 -->\n",
|
||||
"<g id=\"node10\" class=\"node\">\n",
|
||||
"<title>10</title>\n",
|
||||
"<polygon fill=\"#ffffaa\" stroke=\"#e31a1c\" stroke-width=\"2\" points=\"552.6,-146.08 522.44,-128.08 552.6,-110.08 582.77,-128.08 552.6,-146.08\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"552.6\" y=\"-124.38\" font-family=\"Lato\" font-size=\"14.00\">10</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 2->10 -->\n",
|
||||
"<g id=\"edge6\" class=\"edge\">\n",
|
||||
"<title>2->10</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M474.72,-162.82C481.05,-157.11 489.13,-150.59 497.27,-146.08 505.5,-141.52 515.08,-137.87 523.88,-135.08\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"530.73,-133.03 524.92,-138.06 527.37,-134.04 524.02,-135.04 524.02,-135.04 524.02,-135.04 527.37,-134.04 523.12,-132.02 530.73,-133.03 530.73,-133.03\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"497.27\" y=\"-149.88\" font-family=\"Lato\" font-size=\"14.00\">a</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 9->2 -->\n",
|
||||
"<g id=\"edge17\" class=\"edge\">\n",
|
||||
"<title>9->2</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M721.97,-175.08C669.9,-175.08 540.61,-175.08 486.59,-175.08\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"479.49,-175.08 486.49,-171.93 482.99,-175.08 486.49,-175.08 486.49,-175.08 486.49,-175.08 482.99,-175.08 486.49,-178.23 479.49,-175.08 479.49,-175.08\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"602.44\" y=\"-178.88\" font-family=\"Lato\" font-size=\"14.00\">1</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 3 -->\n",
|
||||
"<g id=\"node11\" class=\"node\">\n",
|
||||
"<title>3</title>\n",
|
||||
"<ellipse fill=\"#ffffaa\" stroke=\"#e31a1c\" stroke-width=\"2\" cx=\"648.94\" cy=\"-125.08\" rx=\"18\" ry=\"18\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"648.94\" y=\"-121.38\" font-family=\"Lato\" font-size=\"14.00\">3</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 10->3 -->\n",
|
||||
"<g id=\"edge18\" class=\"edge\">\n",
|
||||
"<title>10->3</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M581.4,-127.2C594.75,-126.77 610.62,-126.27 623.51,-125.86\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"630.71,-125.63 623.81,-129 627.21,-125.74 623.71,-125.85 623.71,-125.85 623.71,-125.85 627.21,-125.74 623.61,-122.7 630.71,-125.63 630.71,-125.63\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"602.44\" y=\"-130.88\" font-family=\"Lato\" font-size=\"14.00\">1</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 3->9 -->\n",
|
||||
"<g id=\"edge7\" class=\"edge\">\n",
|
||||
"<title>3->9</title>\n",
|
||||
"<path fill=\"none\" stroke=\"#e31a1c\" stroke-width=\"2\" d=\"M665.85,-131.58C675.07,-135.5 686.82,-140.75 696.94,-146.08 706.82,-151.29 717.45,-157.72 726.13,-163.21\"/>\n",
|
||||
"<polygon fill=\"#e31a1c\" stroke=\"#e31a1c\" stroke-width=\"2\" points=\"732.07,-167 724.47,-165.88 728.85,-165.54 725.9,-163.65 726.17,-163.23 726.44,-162.81 729.39,-164.69 727.86,-160.58 732.07,-167 732.07,-167\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"685.44\" y=\"-149.88\" font-family=\"Lato\" font-size=\"14.00\">!a</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 11 -->\n",
|
||||
"<g id=\"node12\" class=\"node\">\n",
|
||||
"<title>11</title>\n",
|
||||
"<polygon fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"745.27,-118.08 715.1,-100.08 745.27,-82.08 775.43,-100.08 745.27,-118.08\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"745.27\" y=\"-96.38\" font-family=\"Lato\" font-size=\"14.00\">11</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 3->11 -->\n",
|
||||
"<g id=\"edge8\" class=\"edge\">\n",
|
||||
"<title>3->11</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M664.84,-116.54C670.9,-113.42 678.08,-110.15 684.94,-108.08 693.18,-105.59 702.29,-103.88 710.86,-102.7\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"717.89,-101.82 711.33,-105.81 714.42,-102.25 710.95,-102.69 710.95,-102.69 710.95,-102.69 714.42,-102.25 710.56,-99.56 717.89,-101.82 717.89,-101.82\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"687.44\" y=\"-111.88\" font-family=\"Lato\" font-size=\"14.00\">a</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 11->0 -->\n",
|
||||
"<g id=\"edge19\" class=\"edge\">\n",
|
||||
"<title>11->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" d=\"M761.16,-91.17C776.09,-82.25 799.32,-68.36 816.99,-57.8\"/>\n",
|
||||
"<polygon fill=\"#33a02c\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"823.22,-54.07 818.83,-60.37 820.47,-56.3 817.47,-58.09 817.21,-57.66 816.95,-57.23 819.96,-55.44 815.59,-54.96 823.22,-54.07 823.22,-54.07\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"793.6\" y=\"-75.88\" font-family=\"Lato\" font-size=\"14.00\">1</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 12->1 -->\n",
|
||||
"<g id=\"edge20\" class=\"edge\">\n",
|
||||
"<title>12->1</title>\n",
|
||||
"<path fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" d=\"M201.6,-124.08C214.98,-124.08 229.81,-124.08 242.26,-124.08\"/>\n",
|
||||
"<polygon fill=\"#33a02c\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"249.29,-124.08 242.29,-127.23 245.79,-124.58 242.29,-124.58 242.29,-124.08 242.29,-123.58 245.79,-123.58 242.29,-120.93 249.29,-124.08 249.29,-124.08\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"219.34\" y=\"-127.88\" font-family=\"Lato\" font-size=\"14.00\">!b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 12->3 -->\n",
|
||||
"<g id=\"edge21\" class=\"edge\">\n",
|
||||
"<title>12->3</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M179.99,-111.2C199.83,-96.39 235.5,-74.08 270.34,-74.08 270.34,-74.08 270.34,-74.08 553.6,-74.08 582.88,-74.08 611.77,-93.32 629.72,-108.16\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"635.37,-112.99 628,-110.84 632.71,-110.72 630.05,-108.45 630.05,-108.45 630.05,-108.45 632.71,-110.72 632.09,-106.05 635.37,-112.99 635.37,-112.99\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"417.27\" y=\"-77.88\" font-family=\"Lato\" font-size=\"14.00\">b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 13 -->\n",
|
||||
"<g id=\"node15\" class=\"node\">\n",
|
||||
"<title>13</title>\n",
|
||||
"<polygon fill=\"#ffffaa\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"745.27,-61.08 715.1,-43.08 745.27,-25.08 775.43,-43.08 745.27,-61.08\"/>\n",
|
||||
"<text text-anchor=\"middle\" x=\"745.27\" y=\"-39.38\" font-family=\"Lato\" font-size=\"14.00\">13</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 5->13 -->\n",
|
||||
"<g id=\"edge11\" class=\"edge\">\n",
|
||||
"<title>5->13</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M666.54,-43.68C672.31,-45.06 678.87,-46.4 684.94,-47.08 694.25,-48.13 704.41,-47.93 713.65,-47.24\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"720.83,-46.6 714.15,-50.36 717.35,-46.91 713.86,-47.22 713.86,-47.22 713.86,-47.22 717.35,-46.91 713.58,-44.09 720.83,-46.6 720.83,-46.6\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"686.44\" y=\"-51.88\" font-family=\"Lato\" font-size=\"14.00\">1</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 13->0 -->\n",
|
||||
"<g id=\"edge22\" class=\"edge\">\n",
|
||||
"<title>13->0</title>\n",
|
||||
"<path fill=\"none\" stroke=\"#33a02c\" stroke-width=\"2\" d=\"M775.65,-43.08C787.61,-43.08 801.38,-43.08 813.24,-43.08\"/>\n",
|
||||
"<polygon fill=\"#33a02c\" stroke=\"#33a02c\" stroke-width=\"2\" points=\"820.34,-43.08 813.34,-46.23 816.84,-43.58 813.34,-43.58 813.34,-43.08 813.34,-42.58 816.84,-42.58 813.34,-39.93 820.34,-43.08 820.34,-43.08\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"794.1\" y=\"-46.88\" font-family=\"Lato\" font-size=\"14.00\">b</text>\n",
|
||||
"</g>\n",
|
||||
"<!-- 13->5 -->\n",
|
||||
"<g id=\"edge23\" class=\"edge\">\n",
|
||||
"<title>13->5</title>\n",
|
||||
"<path fill=\"none\" stroke=\"black\" d=\"M727.82,-35.24C716,-30.52 699.64,-25.83 684.94,-28.08 681,-28.68 676.9,-29.65 672.95,-30.76\"/>\n",
|
||||
"<polygon fill=\"black\" stroke=\"black\" points=\"666.07,-32.88 671.84,-27.81 669.42,-31.85 672.76,-30.82 672.76,-30.82 672.76,-30.82 669.42,-31.85 673.69,-33.83 666.07,-32.88 666.07,-32.88\"/>\n",
|
||||
"<text text-anchor=\"start\" x=\"684.94\" y=\"-31.88\" font-family=\"Lato\" font-size=\"14.00\">!b</text>\n",
|
||||
"</g>\n",
|
||||
"</g>\n",
|
||||
"</svg>\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"<spot.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7fb6a430f300> >"
|
||||
"<spot.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7fb3e849e8b0> >"
|
||||
]
|
||||
},
|
||||
"execution_count": 7,
|
||||
|
|
@ -1574,7 +1942,7 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.10.5"
|
||||
"version": "3.11.7"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue