Fixes #327. * spot/twaalgos/dot.cc: Emit a tooltip="..." for state names and labels that are disabled by option "1". * doc/org/tut51.org, tests/python/product.ipynb, NEWS: Discuss this. * tests/core/readsave.test, tests/python/alternation.ipynb, tests/python/automata.ipynb: Adjust test cases.
2048 lines
150 KiB
Text
2048 lines
150 KiB
Text
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"import spot\n",
|
|
"spot.setup(show_default='.ba')"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"These test cases for the `remove_alternation()` algorithm."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 2,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<svg height=\"227pt\" viewBox=\"0.00 0.00 478.08 226.74\" width=\"478pt\" 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 222.7401)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" points=\"-4,4 -4,-222.7401 474.0802,-222.7401 474.0802,4 -4,4\" stroke=\"transparent\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"212.5401\" y=\"-204.5401\">Fin(</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"237.5401\" y=\"-204.5401\">⓿</text>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"253.5401\" y=\"-204.5401\">)</text>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"202.5401\" y=\"-190.5401\">[co-Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g class=\"node\" id=\"node2\">\n",
|
|
"<title>0</title>\n",
|
|
"<g id=\"a_node2\"><a xlink:title=\"(FG(a) && GF(b))\">\n",
|
|
"<ellipse cx=\"56\" cy=\"-73.8701\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"56\" y=\"-70.1701\">0</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge1\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path d=\"M1.1233,-73.8701C4.178,-73.8701 17.9448,-73.8701 30.9241,-73.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"37.9807,-73.8701 30.9808,-77.0202 34.4807,-73.8701 30.9807,-73.8702 30.9807,-73.8702 30.9807,-73.8702 34.4807,-73.8701 30.9807,-70.7202 37.9807,-73.8701 37.9807,-73.8701\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- -1 -->\n",
|
|
"<g class=\"node\" id=\"node3\">\n",
|
|
"<title>-1</title>\n",
|
|
"<ellipse cx=\"120.8\" cy=\"-73.8701\" fill=\"#ffffaa\" rx=\"1.8\" ry=\"1.8\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 0->-1 -->\n",
|
|
"<g class=\"edge\" id=\"edge2\">\n",
|
|
"<title>0->-1</title>\n",
|
|
"<path d=\"M74.0504,-73.8701C86.3102,-73.8701 102.0051,-73.8701 111.7299,-73.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"none\" points=\"111.9176,-76.3202 118.9175,-73.8701 111.9175,-71.4202 111.9176,-76.3202\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"92\" y=\"-77.6701\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g class=\"node\" id=\"node4\">\n",
|
|
"<title>1</title>\n",
|
|
"<g id=\"a_node4\"><a xlink:title=\"GF(b)\">\n",
|
|
"<ellipse cx=\"186.4701\" cy=\"-122.8701\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"181.9701\" y=\"-119.1701\">1</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- -1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge3\">\n",
|
|
"<title>-1->1</title>\n",
|
|
"<path d=\"M122.4233,-75.0813C128.4042,-79.544 149.7135,-95.444 166.1277,-107.6915\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"171.9161,-112.0106 164.422,-110.349 169.1109,-109.9175 166.3058,-107.8244 166.3058,-107.8244 166.3058,-107.8244 169.1109,-109.9175 168.1896,-105.2997 171.9161,-112.0106 171.9161,-112.0106\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g class=\"node\" id=\"node5\">\n",
|
|
"<title>3</title>\n",
|
|
"<g id=\"a_node5\"><a xlink:title=\"FG(a)\">\n",
|
|
"<ellipse cx=\"186.4701\" cy=\"-26.8701\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"181.9701\" y=\"-30.6701\">3</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"178.4701\" y=\"-15.6701\">⓿</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- -1->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge4\">\n",
|
|
"<title>-1->3</title>\n",
|
|
"<path d=\"M122.4233,-72.7083C127.5148,-69.0643 143.7147,-57.47 158.5466,-46.8549\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"164.3516,-42.7002 160.4926,-49.3358 161.5054,-44.7372 158.6593,-46.7743 158.6593,-46.7743 158.6593,-46.7743 161.5054,-44.7372 156.8259,-44.2127 164.3516,-42.7002 164.3516,-42.7002\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge5\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path d=\"M178.8021,-139.1603C176.9532,-149.2592 179.5091,-158.8701 186.4701,-158.8701 191.6908,-158.8701 194.4337,-153.464 194.6988,-146.5004\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"194.138,-139.1603 197.8122,-145.9 194.4046,-142.6502 194.6713,-146.14 194.6713,-146.14 194.6713,-146.14 194.4046,-142.6502 191.5305,-146.38 194.138,-139.1603 194.138,-139.1603\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"181.9701\" y=\"-162.6701\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- -4 -->\n",
|
|
"<g class=\"node\" id=\"node6\">\n",
|
|
"<title>-4</title>\n",
|
|
"<ellipse cx=\"280.3401\" cy=\"-122.8701\" fill=\"#ffffaa\" rx=\"1.8\" ry=\"1.8\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->-4 -->\n",
|
|
"<g class=\"edge\" id=\"edge6\">\n",
|
|
"<title>1->-4</title>\n",
|
|
"<path d=\"M204.5691,-122.8701C224.5212,-122.8701 255.824,-122.8701 271.198,-122.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"none\" points=\"271.2032,-125.3202 278.2031,-122.8701 271.2031,-120.4202 271.2032,-125.3202\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"231.3401\" y=\"-126.6701\">!b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge12\">\n",
|
|
"<title>3->3</title>\n",
|
|
"<path d=\"M178.2704,-52.6914C177.8072,-63.0476 180.5404,-71.7401 186.4701,-71.7401 190.9173,-71.7401 193.5666,-66.8506 194.4178,-60.0368\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"194.6697,-52.6914 197.5779,-59.7953 194.5497,-56.1893 194.4297,-59.6873 194.4297,-59.6873 194.4297,-59.6873 194.5497,-56.1893 191.2816,-59.5793 194.6697,-52.6914 194.6697,-52.6914\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"181.9701\" y=\"-75.5401\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g class=\"node\" id=\"node9\">\n",
|
|
"<title>4</title>\n",
|
|
"<g id=\"a_node9\"><a xlink:title=\"G(a)\">\n",
|
|
"<ellipse cx=\"280.3401\" cy=\"-26.8701\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"280.3401\" y=\"-23.1701\">4</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- 3->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge11\">\n",
|
|
"<title>3->4</title>\n",
|
|
"<path d=\"M213.3694,-26.8701C226.4125,-26.8701 241.9968,-26.8701 254.8487,-26.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"262.06,-26.8701 255.0601,-30.0202 258.56,-26.8701 255.06,-26.8702 255.06,-26.8702 255.06,-26.8702 258.56,-26.8701 255.06,-23.7202 262.06,-26.8701 262.06,-26.8701\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"234.3401\" y=\"-30.6701\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- -4->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge7\">\n",
|
|
"<title>-4->1</title>\n",
|
|
"<path d=\"M278.3925,-122.6504C272.9934,-122.0538 257.3739,-120.4122 244.3401,-119.8701 233.5825,-119.4226 221.7053,-119.8736 211.5248,-120.55\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"204.452,-121.0728 211.2007,-117.4153 207.9425,-120.8148 211.433,-120.5567 211.433,-120.5567 211.433,-120.5567 207.9425,-120.8148 211.6652,-123.6982 204.452,-121.0728 204.452,-121.0728\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g class=\"node\" id=\"node7\">\n",
|
|
"<title>2</title>\n",
|
|
"<g id=\"a_node7\"><a xlink:title=\"F(b)\">\n",
|
|
"<ellipse cx=\"362.2102\" cy=\"-122.8701\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"357.7102\" y=\"-126.6701\">2</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"354.2102\" y=\"-111.6701\">⓿</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- -4->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge8\">\n",
|
|
"<title>-4->2</title>\n",
|
|
"<path d=\"M282.3639,-122.8701C288.7549,-122.8701 309.1849,-122.8701 327.778,-122.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"335.0481,-122.8701 328.0482,-126.0202 331.5481,-122.8701 328.0481,-122.8702 328.0481,-122.8702 328.0481,-122.8702 331.5481,-122.8701 328.0481,-119.7202 335.0481,-122.8701 335.0481,-122.8701\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge10\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path d=\"M354.0105,-148.6914C353.5473,-159.0476 356.2805,-167.7401 362.2102,-167.7401 366.6574,-167.7401 369.3067,-162.8506 370.1579,-156.0368\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"370.4098,-148.6914 373.318,-155.7953 370.2898,-152.1893 370.1698,-155.6873 370.1698,-155.6873 370.1698,-155.6873 370.2898,-152.1893 367.0217,-155.5793 370.4098,-148.6914 370.4098,-148.6914\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"355.7102\" y=\"-171.5401\">!b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5 -->\n",
|
|
"<g class=\"node\" id=\"node8\">\n",
|
|
"<title>5</title>\n",
|
|
"<g id=\"a_node8\"><a xlink:title=\"t\">\n",
|
|
"<ellipse cx=\"452.0802\" cy=\"-122.8701\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"452.0802\" y=\"-119.1701\">5</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- 2->5 -->\n",
|
|
"<g class=\"edge\" id=\"edge9\">\n",
|
|
"<title>2->5</title>\n",
|
|
"<path d=\"M389.1742,-122.8701C401.0496,-122.8701 414.93,-122.8701 426.6266,-122.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"433.9545,-122.8701 426.9546,-126.0202 430.4545,-122.8701 426.9545,-122.8702 426.9545,-122.8702 426.9545,-122.8702 430.4545,-122.8701 426.9545,-119.7202 433.9545,-122.8701 433.9545,-122.8701\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"407.0802\" y=\"-126.6701\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->5 -->\n",
|
|
"<g class=\"edge\" id=\"edge14\">\n",
|
|
"<title>5->5</title>\n",
|
|
"<path d=\"M445.049,-139.5341C443.4865,-149.4951 445.8302,-158.8701 452.0802,-158.8701 456.7677,-158.8701 459.258,-153.5966 459.5509,-146.7576\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"459.1115,-139.5341 462.6808,-146.3299 459.3241,-143.0277 459.5366,-146.5212 459.5366,-146.5212 459.5366,-146.5212 459.3241,-143.0277 456.3925,-146.7125 459.1115,-139.5341 459.1115,-139.5341\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"447.5802\" y=\"-162.6701\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge13\">\n",
|
|
"<title>4->4</title>\n",
|
|
"<path d=\"M273.9609,-43.9074C272.659,-53.728 274.7854,-62.8701 280.3401,-62.8701 284.5061,-62.8701 286.7437,-57.7276 287.0529,-51.0134\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"286.7193,-43.9074 290.1942,-50.7519 286.8835,-47.4035 287.0477,-50.8997 287.0477,-50.8997 287.0477,-50.8997 286.8835,-47.4035 283.9012,-51.0474 286.7193,-43.9074 286.7193,-43.9074\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"276.8401\" y=\"-66.6701\">a</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"<IPython.core.display.SVG object>"
|
|
]
|
|
},
|
|
"execution_count": 2,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"aut = spot.automaton('''\n",
|
|
"HOA: v1\n",
|
|
"tool: \"ltl3ba\" \"1.1.3\"\n",
|
|
"name: \"VWAA for FGa && GFb\"\n",
|
|
"States: 6\n",
|
|
"Start: 0\n",
|
|
"acc-name: co-Buchi\n",
|
|
"Acceptance: 1 Fin(0)\n",
|
|
"AP: 2 \"a\" \"b\"\n",
|
|
"properties: trans-labels explicit-labels state-acc univ-branch very-weak\n",
|
|
"--BODY--\n",
|
|
"State: 0 \"(FG(a) && GF(b))\"\n",
|
|
" [t] 3&1\n",
|
|
"State: 1 \"GF(b)\"\n",
|
|
" [(1)] 1\n",
|
|
" [(!1)] 2&1\n",
|
|
"State: 2 \"F(b)\" {0}\n",
|
|
" [(1)] 5\n",
|
|
" [(!1)] 2\n",
|
|
"State: 3 \"FG(a)\" {0}\n",
|
|
" [(0)] 4\n",
|
|
" [t] 3\n",
|
|
"State: 4 \"G(a)\"\n",
|
|
" [(0)] 4\n",
|
|
"State: 5 \"t\"\n",
|
|
" [t] 5\n",
|
|
"--END--\n",
|
|
"'''); aut.show('.1ab')"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 3,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<!-- Generated by graphviz version 2.40.1 (20161225.0304)\n",
|
|
" -->\n",
|
|
"<!-- Title: G Pages: 1 -->\n",
|
|
"<svg width=\"596pt\" height=\"212pt\"\n",
|
|
" viewBox=\"0.00 0.00 596.19 212.09\" 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 208.0864)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" stroke=\"transparent\" points=\"-4,4 -4,-208.0864 592.1892,-208.0864 592.1892,4 -4,4\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"247.0946\" y=\"-189.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">Inf(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"269.0946\" y=\"-189.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"285.0946\" y=\"-189.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)&Inf(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"321.0946\" y=\"-189.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"<text text-anchor=\"start\" x=\"337.0946\" y=\"-189.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)</text>\n",
|
|
"<text text-anchor=\"start\" x=\"250.0946\" y=\"-175.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">[gen. Büchi 2]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\">\n",
|
|
"<title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"65\" cy=\"-43.0864\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"65\" y=\"-39.3864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M1.2244,-43.0864C4.383,-43.0864 17.3969,-43.0864 30.8528,-43.0864\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"37.8798,-43.0864 30.8799,-46.2365 34.3798,-43.0865 30.8798,-43.0865 30.8798,-43.0865 30.8798,-43.0865 34.3798,-43.0865 30.8798,-39.9365 37.8798,-43.0864 37.8798,-43.0864\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node3\" class=\"node\">\n",
|
|
"<title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"187\" cy=\"-43.0864\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"177\" y=\"-39.3864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1,3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M92.0758,-43.0864C110.003,-43.0864 133.6621,-43.0864 152.8752,-43.0864\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"159.9999,-43.0864 153,-46.2365 156.4999,-43.0865 152.9999,-43.0865 152.9999,-43.0865 152.9999,-43.0865 156.4999,-43.0865 152.9999,-39.9365 159.9999,-43.0864 159.9999,-43.0864\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"121.5\" y=\"-60.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1</text>\n",
|
|
"<text text-anchor=\"start\" x=\"110\" y=\"-46.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"126\" y=\"-46.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M177.7856,-60.1238C175.9051,-69.9444 178.9766,-79.0864 187,-79.0864 193.0176,-79.0864 196.2497,-73.944 196.6963,-67.2297\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"196.2144,-60.1238 199.8309,-66.8946 196.4513,-63.6157 196.6881,-67.1077 196.6881,-67.1077 196.6881,-67.1077 196.4513,-63.6157 193.5453,-67.3209 196.2144,-60.1238 196.2144,-60.1238\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"182.5\" y=\"-97.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"179\" y=\"-82.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g id=\"node4\" class=\"node\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"427.0946\" cy=\"-104.0864\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"417.0946\" y=\"-100.3864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1,4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M200.4672,-58.7158C208.7063,-67.2589 219.9563,-77.2589 232,-83.0864 283.963,-108.2296 352.6146,-109.288 393.0942,-107.1299\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"400.3144,-106.6946 393.5167,-110.2603 396.8208,-106.9053 393.3271,-107.116 393.3271,-107.116 393.3271,-107.116 396.8208,-106.9053 393.1375,-103.9717 400.3144,-106.6946 400.3144,-106.6946\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"279.5473\" y=\"-123.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"280.5473\" y=\"-109.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"296.5473\" y=\"-109.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g id=\"node5\" class=\"node\">\n",
|
|
"<title>3</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"296.5473\" cy=\"-29.0864\" rx=\"30.5947\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"281.0473\" y=\"-25.3864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1,2,3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->3 -->\n",
|
|
"<g id=\"edge5\" class=\"edge\">\n",
|
|
"<title>1->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M212.983,-48.2636C223.8707,-49.6466 236.6188,-50.2343 248,-48.0864 253.8811,-46.9766 259.963,-45.1724 265.7497,-43.1067\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"272.3773,-40.5874 266.9533,-46.0191 269.1057,-41.831 265.8341,-43.0746 265.8341,-43.0746 265.8341,-43.0746 269.1057,-41.831 264.7148,-40.1302 272.3773,-40.5874 272.3773,-40.5874\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"233.5\" y=\"-67.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"232\" y=\"-52.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g id=\"node6\" class=\"node\">\n",
|
|
"<title>4</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"557.6419\" cy=\"-45.0864\" rx=\"30.5947\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"542.1419\" y=\"-41.3864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1,2,4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->4 -->\n",
|
|
"<g id=\"edge6\" class=\"edge\">\n",
|
|
"<title>1->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M202.955,-28.2519C211.0907,-21.447 221.4739,-13.851 232,-9.0864 246.0553,-2.7245 250.6616,-3.747 266,-2.0864 300.9517,1.6976 309.9393,-1.3087 345.0946,-1.0864 361.5387,-.9825 365.774,.9277 382.0946,-1.0864 432.5235,-7.3101 489.2935,-23.2293 524.2687,-34.1109\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"530.9648,-36.2157 523.3424,-37.1216 527.6259,-35.1661 524.287,-34.1166 524.287,-34.1166 524.287,-34.1166 527.6259,-35.1661 525.2316,-31.1115 530.9648,-36.2157 530.9648,-36.2157\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"345.0946\" y=\"-18.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"347.5946\" y=\"-4.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"363.5946\" y=\"-4.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g id=\"edge7\" class=\"edge\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M416.1961,-120.7505C413.7743,-130.7114 417.4071,-140.0864 427.0946,-140.0864 434.3602,-140.0864 438.2201,-134.813 438.6742,-127.974\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"437.993,-120.7505 441.7864,-127.4238 438.3216,-124.2351 438.6503,-127.7196 438.6503,-127.7196 438.6503,-127.7196 438.3216,-124.2351 435.5142,-128.0154 437.993,-120.7505 437.993,-120.7505\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"410.0946\" y=\"-157.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"411.0946\" y=\"-143.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"427.0946\" y=\"-143.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->4 -->\n",
|
|
"<g id=\"edge8\" class=\"edge\">\n",
|
|
"<title>2->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M454.1608,-103.8104C470.7599,-102.6899 492.0278,-99.4964 509.0946,-91.0864 520.6521,-85.3913 531.3119,-75.9902 539.6805,-67.1661\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"544.5826,-61.7848 542.1973,-69.0809 542.2256,-64.3722 539.8686,-66.9596 539.8686,-66.9596 539.8686,-66.9596 542.2256,-64.3722 537.54,-64.8383 544.5826,-61.7848 544.5826,-61.7848\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"472.0946\" y=\"-118.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"474.5946\" y=\"-104.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"490.5946\" y=\"-104.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->1 -->\n",
|
|
"<g id=\"edge9\" class=\"edge\">\n",
|
|
"<title>3->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M272.77,-17.6928C260.5048,-13.2922 245.3544,-10.1561 232,-14.0864 224.2179,-16.3768 216.5114,-20.4764 209.7336,-24.8853\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"203.7946,-28.9783 207.7709,-22.4123 206.6765,-26.9922 209.5584,-25.006 209.5584,-25.006 209.5584,-25.006 206.6765,-26.9922 211.3459,-27.5997 203.7946,-28.9783 203.7946,-28.9783\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"235.5\" y=\"-32.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"232\" y=\"-17.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->2 -->\n",
|
|
"<g id=\"edge10\" class=\"edge\">\n",
|
|
"<title>3->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M320.1439,-40.6683C337.528,-49.3999 361.6084,-61.9141 382.0946,-74.0864 388.6329,-77.9714 395.5388,-82.4013 401.9251,-86.6423\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"408.1053,-90.7933 400.538,-89.5052 405.1998,-88.8418 402.2943,-86.8903 402.2943,-86.8903 402.2943,-86.8903 405.1998,-88.8418 404.0507,-84.2754 408.1053,-90.7933 408.1053,-90.7933\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"346.5946\" y=\"-91.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"347.5946\" y=\"-77.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"363.5946\" y=\"-77.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g id=\"edge11\" class=\"edge\">\n",
|
|
"<title>3->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M286.6241,-46.1238C284.5989,-55.9444 287.9067,-65.0864 296.5473,-65.0864 303.0278,-65.0864 306.5085,-59.944 306.9895,-53.2297\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"306.4705,-46.1238 310.1221,-52.8757 306.7255,-49.6145 306.9804,-53.1052 306.9804,-53.1052 306.9804,-53.1052 306.7255,-49.6145 303.8388,-53.3346 306.4705,-46.1238 306.4705,-46.1238\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"290.0473\" y=\"-68.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->4 -->\n",
|
|
"<g id=\"edge12\" class=\"edge\">\n",
|
|
"<title>3->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M327.0091,-30.9532C374.9309,-33.8898 467.8203,-39.5821 519.9013,-42.7737\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"526.9704,-43.2069 519.7908,-45.9227 523.477,-42.9928 519.9835,-42.7786 519.9835,-42.7786 519.9835,-42.7786 523.477,-42.9928 520.1763,-39.6345 526.9704,-43.2069 526.9704,-43.2069\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"408.5946\" y=\"-57.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"419.0946\" y=\"-42.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->2 -->\n",
|
|
"<g id=\"edge13\" class=\"edge\">\n",
|
|
"<title>4->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M526.9195,-45.5571C509.9554,-46.9077 488.968,-50.4343 472.0946,-59.0864 461.3906,-64.575 451.652,-73.5345 443.9936,-82.0197\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"439.0377,-87.7699 441.2216,-80.411 441.3227,-85.1187 443.6077,-82.4675 443.6077,-82.4675 443.6077,-82.4675 441.3227,-85.1187 445.9938,-84.524 439.0377,-87.7699 439.0377,-87.7699\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"473.5946\" y=\"-76.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"474.5946\" y=\"-62.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"490.5946\" y=\"-62.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g id=\"edge14\" class=\"edge\">\n",
|
|
"<title>4->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M546.0403,-61.7505C543.4622,-71.7114 547.3294,-81.0864 557.6419,-81.0864 565.3762,-81.0864 569.4851,-75.813 569.9685,-68.974\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"569.2434,-61.7505 573.0769,-68.4009 569.593,-65.233 569.9427,-68.7155 569.9427,-68.7155 569.9427,-68.7155 569.593,-65.233 566.8084,-69.0302 569.2434,-61.7505 569.2434,-61.7505\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"539.1419\" y=\"-99.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"549.6419\" y=\"-84.8864\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text/plain": [
|
|
"<spot.impl.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7f74000699f0> >"
|
|
]
|
|
},
|
|
"execution_count": 3,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"aut2 = spot.remove_alternation(aut, True); aut2"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 4,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<!-- Generated by graphviz version 2.40.1 (20161225.0304)\n",
|
|
" -->\n",
|
|
"<!-- Title: G Pages: 1 -->\n",
|
|
"<svg width=\"570pt\" height=\"200pt\"\n",
|
|
" viewBox=\"0.00 0.00 570.19 200.38\" 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 196.3847)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" stroke=\"transparent\" points=\"-4,4 -4,-196.3847 566.1892,-196.3847 566.1892,4 -4,4\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"260.0946\" y=\"-178.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">Inf(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"282.0946\" y=\"-178.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"298.0946\" y=\"-178.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)</text>\n",
|
|
"<text text-anchor=\"start\" x=\"258.0946\" y=\"-164.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">[Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\">\n",
|
|
"<title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"65\" cy=\"-44.3847\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"65\" y=\"-40.6847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M1.2244,-44.3847C4.383,-44.3847 17.3969,-44.3847 30.8528,-44.3847\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"37.8798,-44.3847 30.8799,-47.5348 34.3798,-44.3848 30.8798,-44.3848 30.8798,-44.3848 30.8798,-44.3848 34.3798,-44.3848 30.8798,-41.2348 37.8798,-44.3847 37.8798,-44.3847\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node3\" class=\"node\">\n",
|
|
"<title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"164\" cy=\"-44.3847\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"154\" y=\"-40.6847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1,3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M92.0522,-44.3847C103.7294,-44.3847 117.5212,-44.3847 129.8895,-44.3847\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"136.9805,-44.3847 129.9806,-47.5348 133.4805,-44.3848 129.9805,-44.3848 129.9805,-44.3848 129.9805,-44.3848 133.4805,-44.3848 129.9805,-41.2348 136.9805,-44.3847 136.9805,-44.3847\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"114.5\" y=\"-48.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M155.4307,-61.7946C153.8311,-71.4726 156.6875,-80.3847 164,-80.3847 169.3701,-80.3847 172.3371,-75.5784 172.9008,-69.192\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"172.5693,-61.7946 176.0296,-68.6465 172.7261,-65.2911 172.8828,-68.7876 172.8828,-68.7876 172.8828,-68.7876 172.7261,-65.2911 169.7359,-68.9287 172.5693,-61.7946 172.5693,-61.7946\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"159.5\" y=\"-84.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g id=\"node4\" class=\"node\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"401.0946\" cy=\"-90.3847\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"391.0946\" y=\"-86.6847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1,4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M180.444,-58.68C194.9898,-70.3119 217.3639,-85.835 240,-92.3847 282.8384,-104.78 334.8047,-100.9595 367.9118,-96.314\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"375.0877,-95.2525 368.6241,-99.393 371.6254,-95.7647 368.1631,-96.2769 368.1631,-96.2769 368.1631,-96.2769 371.6254,-95.7647 367.7021,-93.1608 375.0877,-95.2525 375.0877,-95.2525\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"253.5473\" y=\"-104.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g id=\"node5\" class=\"node\">\n",
|
|
"<title>3</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"270.5473\" cy=\"-32.3847\" rx=\"30.5947\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"255.0473\" y=\"-28.6847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1,2,3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->3 -->\n",
|
|
"<g id=\"edge5\" class=\"edge\">\n",
|
|
"<title>1->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M191.2088,-43.7171C200.9461,-43.283 211.9866,-42.5667 222,-41.3847 226.0902,-40.9019 230.3551,-40.2833 234.5851,-39.5969\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"241.634,-38.3897 235.2662,-42.6762 238.1842,-38.9806 234.7344,-39.5715 234.7344,-39.5715 234.7344,-39.5715 238.1842,-38.9806 234.2026,-36.4667 241.634,-38.3897 241.634,-38.3897\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"209\" y=\"-47.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g id=\"node6\" class=\"node\">\n",
|
|
"<title>4</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"531.6419\" cy=\"-48.3847\" rx=\"30.5947\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"516.1419\" y=\"-44.6847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1,2,4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->4 -->\n",
|
|
"<g id=\"edge6\" class=\"edge\">\n",
|
|
"<title>1->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M182.552,-30.9737C197.2871,-21.3207 218.8617,-9.3333 240,-5.3847 333.1659,12.0182 444.1533,-18.2578 498.4269,-36.3393\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"505.3875,-38.6956 497.747,-39.4347 502.0723,-37.5733 498.7571,-36.451 498.7571,-36.451 498.7571,-36.451 502.0723,-37.5733 499.7671,-33.4673 505.3875,-38.6956 505.3875,-38.6956\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"319.0946\" y=\"-7.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g id=\"edge7\" class=\"edge\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M390.1961,-107.0488C387.7743,-117.0097 391.4071,-126.3847 401.0946,-126.3847 408.3602,-126.3847 412.2201,-121.1113 412.6742,-114.2723\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"411.993,-107.0488 415.7864,-113.7221 412.3216,-110.5333 412.6503,-114.0179 412.6503,-114.0179 412.6503,-114.0179 412.3216,-110.5333 409.5142,-114.3136 411.993,-107.0488 411.993,-107.0488\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"384.0946\" y=\"-145.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"393.0946\" y=\"-130.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->4 -->\n",
|
|
"<g id=\"edge8\" class=\"edge\">\n",
|
|
"<title>2->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M426.052,-97.8868C442.7941,-101.5762 465.0064,-103.8171 483.0946,-96.3847 495.9248,-91.1128 507.1701,-80.6296 515.5983,-70.8015\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"520.2258,-65.135 518.2379,-72.5493 518.0119,-67.8459 515.7981,-70.5568 515.7981,-70.5568 515.7981,-70.5568 518.0119,-67.8459 513.3583,-68.5643 520.2258,-65.135 520.2258,-65.135\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"446.0946\" y=\"-119.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"456.5946\" y=\"-104.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->1 -->\n",
|
|
"<g id=\"edge9\" class=\"edge\">\n",
|
|
"<title>3->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M243.7372,-23.5119C232.8887,-21.0924 220.2851,-19.7738 209,-22.3847 202.9105,-23.7936 196.6932,-26.1455 190.8998,-28.8\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"184.3267,-32.0166 189.2296,-26.1103 187.4705,-30.4781 190.6142,-28.9396 190.6142,-28.9396 190.6142,-28.9396 187.4705,-30.4781 191.9989,-31.769 184.3267,-32.0166 184.3267,-32.0166\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"211\" y=\"-26.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->2 -->\n",
|
|
"<g id=\"edge10\" class=\"edge\">\n",
|
|
"<title>3->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M295.1022,-43.2941C316.8829,-52.9709 348.7347,-67.1221 371.8312,-77.3835\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"378.3969,-80.3005 370.7209,-80.337 375.1984,-78.8794 371.9999,-77.4584 371.9999,-77.4584 371.9999,-77.4584 375.1984,-78.8794 373.2788,-74.5797 378.3969,-80.3005 378.3969,-80.3005\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"320.5946\" y=\"-73.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g id=\"edge11\" class=\"edge\">\n",
|
|
"<title>3->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M260.9068,-49.7946C259.1072,-59.4726 262.3207,-68.3847 270.5473,-68.3847 276.5887,-68.3847 279.9265,-63.5784 280.5607,-57.192\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"280.1878,-49.7946 283.6863,-56.6271 280.3641,-53.2902 280.5403,-56.7857 280.5403,-56.7857 280.5403,-56.7857 280.3641,-53.2902 277.3943,-56.9444 280.1878,-49.7946 280.1878,-49.7946\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"264.0473\" y=\"-72.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->4 -->\n",
|
|
"<g id=\"edge12\" class=\"edge\">\n",
|
|
"<title>3->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M301.0091,-34.2514C348.9309,-37.1881 441.8203,-42.8804 493.9013,-46.072\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"500.9704,-46.5052 493.7908,-49.221 497.477,-46.291 493.9835,-46.0769 493.9835,-46.0769 493.9835,-46.0769 497.477,-46.291 494.1763,-42.9328 500.9704,-46.5052 500.9704,-46.5052\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"382.5946\" y=\"-46.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->2 -->\n",
|
|
"<g id=\"edge13\" class=\"edge\">\n",
|
|
"<title>4->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M501.1985,-50.4331C484.5133,-52.2753 463.7045,-55.7682 446.0946,-62.3847 438.9885,-65.0547 431.789,-68.9117 425.2943,-72.9134\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"419.0642,-76.9247 423.2445,-70.4867 422.0069,-75.03 424.9497,-73.1352 424.9497,-73.1352 424.9497,-73.1352 422.0069,-75.03 426.655,-75.7837 419.0642,-76.9247 419.0642,-76.9247\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"447.5946\" y=\"-81.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"456.5946\" y=\"-66.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g id=\"edge14\" class=\"edge\">\n",
|
|
"<title>4->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M520.0403,-65.0488C517.4622,-75.0097 521.3294,-84.3847 531.6419,-84.3847 539.3762,-84.3847 543.4851,-79.1113 543.9685,-72.2723\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"543.2434,-65.0488 547.0769,-71.6991 543.593,-68.5313 543.9427,-72.0138 543.9427,-72.0138 543.9427,-72.0138 543.593,-68.5313 540.8084,-72.3284 543.2434,-65.0488 543.2434,-65.0488\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"513.1419\" y=\"-88.1847\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text/plain": [
|
|
"<spot.impl.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7f74001bff30> >"
|
|
]
|
|
},
|
|
"execution_count": 4,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"spot.scc_filter(aut2, True)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 5,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<svg height=\"180pt\" viewBox=\"0.00 0.00 385.48 180.21\" width=\"385pt\" 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 176.2143)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" points=\"-4,4 -4,-176.2143 381.4802,-176.2143 381.4802,4 -4,4\" stroke=\"transparent\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"166.2401\" y=\"-158.0143\">Fin(</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"191.2401\" y=\"-158.0143\">⓿</text>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"207.2401\" y=\"-158.0143\">)</text>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"156.2401\" y=\"-144.0143\">[co-Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g class=\"node\" id=\"node2\">\n",
|
|
"<title>0</title>\n",
|
|
"<g id=\"a_node2\"><a xlink:title=\"(a;a*;b)*\">\n",
|
|
"<ellipse cx=\"64.8701\" cy=\"-68\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"60.3701\" y=\"-71.8\">0</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"56.8701\" y=\"-56.8\">⓿</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge1\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path d=\"M1.2229,-68C4.3751,-68 17.3629,-68 30.7917,-68\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"37.8045,-68 30.8046,-71.1501 34.3045,-68 30.8045,-68.0001 30.8045,-68.0001 30.8045,-68.0001 34.3045,-68 30.8045,-64.8501 37.8045,-68 37.8045,-68\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g class=\"node\" id=\"node3\">\n",
|
|
"<title>1</title>\n",
|
|
"<g id=\"a_node3\"><a xlink:title=\"a*;b;(a;a*;b)*\">\n",
|
|
"<ellipse cx=\"218.6102\" cy=\"-63\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"214.1102\" y=\"-66.8\">1</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"210.6102\" y=\"-51.8\">⓿</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge2\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path d=\"M89.5126,-56.1658C95.9501,-53.6207 102.9824,-51.3049 109.7401,-50 137.6686,-44.607 145.578,-46.0026 173.7401,-50 177.7525,-50.5695 181.9081,-51.412 185.998,-52.3992\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"192.7823,-54.1746 185.2129,-55.4498 189.3963,-53.2885 186.0103,-52.4024 186.0103,-52.4024 186.0103,-52.4024 189.3963,-53.2885 186.8078,-49.355 192.7823,-54.1746 192.7823,-54.1746\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"138.2401\" y=\"-53.8\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g class=\"node\" id=\"node4\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse cx=\"359.4802\" cy=\"-18\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"359.4802\" y=\"-14.3\">2</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge3\">\n",
|
|
"<title>0->2</title>\n",
|
|
"<path d=\"M88.1054,-53.7295C112.758,-39.5736 153.3717,-19.0104 191.7401,-12 241.8422,-2.8456 301.7202,-8.9882 334.671,-13.8071\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"341.6693,-14.8706 334.2755,-16.9331 338.209,-14.3448 334.7488,-13.8189 334.7488,-13.8189 334.7488,-13.8189 338.209,-14.3448 335.222,-10.7046 341.6693,-14.8706 341.6693,-14.8706\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"213.1102\" y=\"-15.8\">!a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge9\">\n",
|
|
"<title>1->0</title>\n",
|
|
"<path d=\"M191.564,-64.28C185.6886,-64.5372 179.5066,-64.792 173.7401,-65 148.8927,-65.896 120.8467,-66.6631 99.444,-67.1973\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"92.1667,-67.3763 99.0871,-64.055 95.6657,-67.2902 99.1646,-67.204 99.1646,-67.204 99.1646,-67.204 95.6657,-67.2902 99.2421,-70.3531 92.1667,-67.3763 92.1667,-67.3763\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"109.7401\" y=\"-70.8\">!a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge7\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path d=\"M205.0739,-86.5464C203.4028,-97.8722 207.9149,-107.8701 218.6102,-107.8701 226.9659,-107.8701 231.5477,-101.7678 232.3555,-93.6976\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"232.1464,-86.5464 235.4997,-93.4513 232.2488,-90.0449 232.3511,-93.5434 232.3511,-93.5434 232.3511,-93.5434 232.2488,-90.0449 229.2024,-93.6355 232.1464,-86.5464 232.1464,-86.5464\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"199.1102\" y=\"-111.6701\">!b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge8\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path d=\"M243.5311,-51.7376C249.9633,-49.0275 256.9234,-46.2644 263.4802,-44 287.3596,-35.7534 315.3008,-28.4405 334.8611,-23.6877\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"341.9215,-21.9948 335.8489,-26.6902 338.518,-22.8109 335.1145,-23.627 335.1145,-23.627 335.1145,-23.627 338.518,-22.8109 334.38,-20.5638 341.9215,-21.9948 341.9215,-21.9948\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"272.9802\" y=\"-47.8\">!a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- -1 -->\n",
|
|
"<g class=\"node\" id=\"node5\">\n",
|
|
"<title>-1</title>\n",
|
|
"<ellipse cx=\"359.4802\" cy=\"-104\" fill=\"#ffffaa\" rx=\"1.8\" ry=\"1.8\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->-1 -->\n",
|
|
"<g class=\"edge\" id=\"edge4\">\n",
|
|
"<title>1->-1</title>\n",
|
|
"<path d=\"M245.4954,-62.019C267.317,-62.1617 298.4578,-64.5377 323.4802,-75 335.4755,-80.0154 346.7055,-90.2963 353.3353,-97.1701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"none\" points=\"351.7574,-99.0751 358.2896,-102.587 355.3732,-95.7681 351.7574,-99.0751\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"263.4802\" y=\"-78.8\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge10\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path d=\"M348.5675,-32.4167C344.7567,-43.166 348.3943,-54 359.4802,-54 368.1411,-54 372.2559,-47.3875 371.8245,-39.3688\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"370.393,-32.4167 374.8901,-38.6375 371.0989,-35.8447 371.8049,-39.2728 371.8049,-39.2728 371.8049,-39.2728 371.0989,-35.8447 368.7196,-39.9082 370.393,-32.4167 370.393,-32.4167\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"359.4802\" y=\"-57.8\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- -1->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge5\">\n",
|
|
"<title>-1->0</title>\n",
|
|
"<path d=\"M357.81,-104.7813C344.8861,-110.7243 259.5254,-148.1292 191.7401,-132 155.6766,-123.4188 118.2381,-102.861 93.4641,-87.343\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"87.447,-83.5167 95.0442,-84.6149 90.4004,-85.3949 93.3539,-87.273 93.3539,-87.273 93.3539,-87.273 90.4004,-85.3949 91.6635,-89.9311 87.447,-83.5167 87.447,-83.5167\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- -1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge6\">\n",
|
|
"<title>-1->1</title>\n",
|
|
"<path d=\"M357.5839,-103.998C347.5391,-103.9322 299.642,-102.9243 263.4802,-90 257.8192,-87.9767 252.0889,-85.1972 246.7029,-82.1872\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"240.5631,-78.5793 248.1942,-79.41 243.5807,-80.3525 246.5983,-82.1258 246.5983,-82.1258 246.5983,-82.1258 243.5807,-80.3525 245.0024,-84.8416 240.5631,-78.5793 240.5631,-78.5793\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"<IPython.core.display.SVG object>"
|
|
]
|
|
},
|
|
"execution_count": 5,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# Example from ADL's PSL2TGBA talk.\n",
|
|
"aut = spot.automaton('''\n",
|
|
"HOA: v1\n",
|
|
"States: 3\n",
|
|
"Start: 0\n",
|
|
"acc-name: co-Buchi\n",
|
|
"Acceptance: 1 Fin(0)\n",
|
|
"AP: 3 \"a\" \"b\" \"p\"\n",
|
|
"--BODY--\n",
|
|
"State: 0 \"(a;a*;b)*\" {0}\n",
|
|
" [0] 1\n",
|
|
" [!0] 2\n",
|
|
"State: 1 \"a*;b;(a;a*;b)*\" {0}\n",
|
|
" [0&1&2] 0&1\n",
|
|
" [!1&2] 1\n",
|
|
" [!0&!1] 2\n",
|
|
" [!0&1&2] 0\n",
|
|
"State: 2\n",
|
|
" [t] 2\n",
|
|
"--END--\n",
|
|
"'''); aut.show('.1ab')"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 6,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<!-- Generated by graphviz version 2.40.1 (20161225.0304)\n",
|
|
" -->\n",
|
|
"<!-- Title: G Pages: 1 -->\n",
|
|
"<svg width=\"564pt\" height=\"195pt\"\n",
|
|
" viewBox=\"0.00 0.00 563.89 194.87\" 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 190.8684)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" stroke=\"transparent\" points=\"-4,4 -4,-190.8684 559.8939,-190.8684 559.8939,4 -4,4\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"256.9469\" y=\"-172.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">Inf(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"278.9469\" y=\"-172.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"294.9469\" y=\"-172.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)</text>\n",
|
|
"<text text-anchor=\"start\" x=\"254.9469\" y=\"-158.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">[Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\">\n",
|
|
"<title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"65\" cy=\"-50.8684\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"56.5\" y=\"-47.1684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">~0</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M1.2244,-50.8684C4.383,-50.8684 17.3969,-50.8684 30.8528,-50.8684\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"37.8798,-50.8684 30.8799,-54.0185 34.3798,-50.8684 30.8798,-50.8685 30.8798,-50.8685 30.8798,-50.8685 34.3798,-50.8684 30.8798,-47.7185 37.8798,-50.8684 37.8798,-50.8684\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node3\" class=\"node\">\n",
|
|
"<title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"224\" cy=\"-45.8684\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"215.5\" y=\"-42.1684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">~1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M86.9234,-40.1637C94.103,-37.1883 102.2333,-34.3641 110,-32.8684 137.9312,-27.4893 145.7853,-29.2605 174,-32.8684 180.0748,-33.6452 186.4661,-34.9325 192.5729,-36.4026\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"199.575,-38.1928 192.0128,-39.5107 196.184,-37.3258 192.7931,-36.4589 192.7931,-36.4589 192.7931,-36.4589 196.184,-37.3258 193.5734,-33.407 199.575,-38.1928 199.575,-38.1928\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"138.5\" y=\"-36.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g id=\"node4\" class=\"node\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"528.8939\" cy=\"-31.8684\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"523.8939\" y=\"-28.1684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">{}</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->2 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\">\n",
|
|
"<title>0->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M83.8918,-37.6451C91.6445,-32.8477 100.9203,-27.8736 110,-24.8684 206.5344,7.0824 236.5483,1.0088 338,-5.8684 393.5309,-9.6327 457.5277,-19.4891 495.5207,-25.927\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"502.7623,-27.1661 495.3313,-29.0903 499.3125,-26.5758 495.8626,-25.9854 495.8626,-25.9854 495.8626,-25.9854 499.3125,-26.5758 496.394,-22.8805 502.7623,-27.1661 502.7623,-27.1661\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"300.5\" y=\"-24.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"298\" y=\"-9.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->0 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\">\n",
|
|
"<title>1->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M197.0153,-47.0094C189.5598,-47.3079 181.467,-47.6163 174,-47.8684 149.0123,-48.712 120.7963,-49.4836 99.3334,-50.033\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"92.3281,-50.2106 99.2459,-46.8841 95.8269,-50.1218 99.3258,-50.0331 99.3258,-50.0331 99.3258,-50.0331 95.8269,-50.1218 99.4057,-53.1821 92.3281,-50.2106 92.3281,-50.2106\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"110\" y=\"-52.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge5\" class=\"edge\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M209.9801,-61.4098C206.0337,-71.7771 210.707,-81.8684 224,-81.8684 234.1774,-81.8684 239.3022,-75.9531 239.3742,-68.5275\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"238.0199,-61.4098 242.4229,-67.6976 238.6742,-64.8482 239.3285,-68.2865 239.3285,-68.2865 239.3285,-68.2865 238.6742,-64.8482 236.234,-68.8753 238.0199,-61.4098 238.0199,-61.4098\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"204.5\" y=\"-85.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g id=\"edge6\" class=\"edge\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M251.0573,-44.626C306.656,-42.073 433.6498,-36.2418 494.7783,-33.4349\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"501.8972,-33.108 495.0491,-36.5759 498.4009,-33.2686 494.9046,-33.4292 494.9046,-33.4292 494.9046,-33.4292 498.4009,-33.2686 494.7601,-30.2825 501.8972,-33.108 501.8972,-33.108\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"369.9469\" y=\"-57.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"382.4469\" y=\"-42.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g id=\"node5\" class=\"node\">\n",
|
|
"<title>3</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"390.4469\" cy=\"-99.8684\" rx=\"34.394\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"371.9469\" y=\"-96.1684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">~1,~0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->3 -->\n",
|
|
"<g id=\"edge7\" class=\"edge\">\n",
|
|
"<title>1->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M251.082,-47.5582C274.7138,-49.7417 309.5732,-54.698 338,-65.8684 347.3358,-69.5369 356.7676,-74.9891 365.009,-80.4586\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"371.0579,-84.6152 363.5047,-83.2469 368.1733,-82.633 365.2887,-80.6507 365.2887,-80.6507 365.2887,-80.6507 368.1733,-82.633 367.0727,-78.0546 371.0579,-84.6152 371.0579,-84.6152\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"276\" y=\"-69.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g id=\"edge8\" class=\"edge\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M517.6439,-48.5325C515.1439,-58.4934 518.8939,-67.8684 528.8939,-67.8684 536.3939,-67.8684 540.3783,-62.595 540.847,-55.756\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"540.1439,-48.5325 543.9573,-55.1943 540.483,-52.016 540.8221,-55.4995 540.8221,-55.4995 540.8221,-55.4995 540.483,-52.016 537.687,-55.8047 540.1439,-48.5325 540.1439,-48.5325\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"524.3939\" y=\"-86.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1</text>\n",
|
|
"<text text-anchor=\"start\" x=\"520.8939\" y=\"-71.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->0 -->\n",
|
|
"<g id=\"edge9\" class=\"edge\">\n",
|
|
"<title>3->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M361.3545,-109.7431C353.8354,-111.8638 345.6906,-113.7902 338,-114.8684 273.6175,-123.8942 254.8436,-122.5191 192,-105.8684 156.3943,-96.4345 117.8902,-78.5763 92.7271,-65.7663\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"86.3125,-62.4626 93.9779,-62.8673 89.4241,-64.0652 92.5356,-65.6677 92.5356,-65.6677 92.5356,-65.6677 89.4241,-64.0652 91.0934,-68.4681 86.3125,-62.4626 86.3125,-62.4626\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"192\" y=\"-122.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->1 -->\n",
|
|
"<g id=\"edge10\" class=\"edge\">\n",
|
|
"<title>3->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M355.9807,-98.2889C332.2082,-96.24 300.2802,-91.5554 274,-80.8684 264.3011,-76.9243 254.6403,-70.8104 246.433,-64.7894\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"240.4637,-60.2407 247.9407,-61.9779 243.2476,-62.3621 246.0315,-64.4834 246.0315,-64.4834 246.0315,-64.4834 243.2476,-62.3621 244.1222,-66.9889 240.4637,-60.2407 240.4637,-60.2407\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"274\" y=\"-99.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->2 -->\n",
|
|
"<g id=\"edge11\" class=\"edge\">\n",
|
|
"<title>3->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M415.8402,-87.3961C439.7746,-75.6405 475.5846,-58.0519 500.4644,-45.8319\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"506.8561,-42.6925 501.9618,-48.6059 503.7146,-44.2355 500.5731,-45.7786 500.5731,-45.7786 500.5731,-45.7786 503.7146,-44.2355 499.1844,-42.9512 506.8561,-42.6925 506.8561,-42.6925\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"442.8939\" y=\"-92.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"455.3939\" y=\"-77.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g id=\"edge12\" class=\"edge\">\n",
|
|
"<title>3->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M377.6885,-116.9057C375.0848,-126.7263 379.3376,-135.8684 390.4469,-135.8684 398.779,-135.8684 403.2542,-130.726 403.8726,-124.0117\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"403.2054,-116.9057 406.996,-123.5805 403.5326,-120.3904 403.8598,-123.875 403.8598,-123.875 403.8598,-123.875 403.5326,-120.3904 400.7236,-124.1696 403.2054,-116.9057 403.2054,-116.9057\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"360.4469\" y=\"-139.6684\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text/plain": [
|
|
"<spot.impl.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7f7400069900> >"
|
|
]
|
|
},
|
|
"execution_count": 6,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"spot.remove_alternation(aut, True)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 7,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<svg height=\"193pt\" viewBox=\"0.00 0.00 510.48 193.21\" width=\"510pt\" 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 189.2143)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" points=\"-4,4 -4,-189.2143 506.4802,-189.2143 506.4802,4 -4,4\" stroke=\"transparent\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"228.7401\" y=\"-171.0143\">Fin(</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"253.7401\" y=\"-171.0143\">⓿</text>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"269.7401\" y=\"-171.0143\">)</text>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"218.7401\" y=\"-157.0143\">[co-Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 3 -->\n",
|
|
"<g class=\"node\" id=\"node2\">\n",
|
|
"<title>3</title>\n",
|
|
"<ellipse cx=\"56\" cy=\"-34\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"56\" y=\"-30.3\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge1\">\n",
|
|
"<title>I->3</title>\n",
|
|
"<path d=\"M1.1233,-34C4.178,-34 17.9448,-34 30.9241,-34\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"37.9807,-34 30.9808,-37.1501 34.4807,-34 30.9807,-34.0001 30.9807,-34.0001 30.9807,-34.0001 34.4807,-34 30.9807,-30.8501 37.9807,-34 37.9807,-34\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- -4 -->\n",
|
|
"<g class=\"node\" id=\"node7\">\n",
|
|
"<title>-4</title>\n",
|
|
"<ellipse cx=\"121.5\" cy=\"-53\" fill=\"#ffffaa\" rx=\"1.8\" ry=\"1.8\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 3->-4 -->\n",
|
|
"<g class=\"edge\" id=\"edge11\">\n",
|
|
"<title>3->-4</title>\n",
|
|
"<path d=\"M73.5528,-39.0917C86.2142,-42.7644 102.7696,-47.5668 112.7445,-50.4602\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"none\" points=\"112.1476,-52.838 119.5531,-52.4352 113.5128,-48.132 112.1476,-52.838\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"92\" y=\"-50.8\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0 -->\n",
|
|
"<g class=\"node\" id=\"node3\">\n",
|
|
"<title>0</title>\n",
|
|
"<g id=\"a_node3\"><a xlink:title=\"(a;a*;b)*\">\n",
|
|
"<ellipse cx=\"189.8701\" cy=\"-81\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"185.3701\" y=\"-84.8\">0</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"181.8701\" y=\"-69.8\">⓿</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g class=\"node\" id=\"node4\">\n",
|
|
"<title>1</title>\n",
|
|
"<g id=\"a_node4\"><a xlink:title=\"a*;b;(a;a*;b)*\">\n",
|
|
"<ellipse cx=\"343.6102\" cy=\"-76\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"339.1102\" y=\"-79.8\">1</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"335.6102\" y=\"-64.8\">⓿</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge2\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path d=\"M214.5126,-69.1658C220.9501,-66.6207 227.9824,-64.3049 234.7401,-63 262.6686,-57.607 270.578,-59.0026 298.7401,-63 302.7525,-63.5695 306.9081,-64.412 310.998,-65.3992\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"317.7823,-67.1746 310.2129,-68.4498 314.3963,-66.2885 311.0103,-65.4024 311.0103,-65.4024 311.0103,-65.4024 314.3963,-66.2885 311.8078,-62.355 317.7823,-67.1746 317.7823,-67.1746\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"263.2401\" y=\"-66.8\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g class=\"node\" id=\"node5\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse cx=\"484.4802\" cy=\"-31\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"484.4802\" y=\"-27.3\">2</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge3\">\n",
|
|
"<title>0->2</title>\n",
|
|
"<path d=\"M213.1054,-66.7295C237.758,-52.5736 278.3717,-32.0104 316.7401,-25 366.8422,-15.8456 426.7202,-21.9882 459.671,-26.8071\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"466.6693,-27.8706 459.2755,-29.9331 463.209,-27.3448 459.7488,-26.8189 459.7488,-26.8189 459.7488,-26.8189 463.209,-27.3448 460.222,-23.7046 466.6693,-27.8706 466.6693,-27.8706\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"338.1102\" y=\"-28.8\">!a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge9\">\n",
|
|
"<title>1->0</title>\n",
|
|
"<path d=\"M316.564,-77.28C310.6886,-77.5372 304.5066,-77.792 298.7401,-78 273.8927,-78.896 245.8467,-79.6631 224.444,-80.1973\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"217.1667,-80.3763 224.0871,-77.055 220.6657,-80.2902 224.1646,-80.204 224.1646,-80.204 224.1646,-80.204 220.6657,-80.2902 224.2421,-83.3531 217.1667,-80.3763 217.1667,-80.3763\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"234.7401\" y=\"-83.8\">!a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge7\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path d=\"M330.0739,-99.5464C328.4028,-110.8722 332.9149,-120.8701 343.6102,-120.8701 351.9659,-120.8701 356.5477,-114.7678 357.3555,-106.6976\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"357.1464,-99.5464 360.4997,-106.4513 357.2488,-103.0449 357.3511,-106.5434 357.3511,-106.5434 357.3511,-106.5434 357.2488,-103.0449 354.2024,-106.6355 357.1464,-99.5464 357.1464,-99.5464\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"324.1102\" y=\"-124.6701\">!b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge8\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path d=\"M368.5311,-64.7376C374.9633,-62.0275 381.9234,-59.2644 388.4802,-57 412.3596,-48.7534 440.3008,-41.4405 459.8611,-36.6877\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"466.9215,-34.9948 460.8489,-39.6902 463.518,-35.8109 460.1145,-36.627 460.1145,-36.627 460.1145,-36.627 463.518,-35.8109 459.38,-33.5638 466.9215,-34.9948 466.9215,-34.9948\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"397.9802\" y=\"-60.8\">!a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- -1 -->\n",
|
|
"<g class=\"node\" id=\"node6\">\n",
|
|
"<title>-1</title>\n",
|
|
"<ellipse cx=\"484.4802\" cy=\"-117\" fill=\"#ffffaa\" rx=\"1.8\" ry=\"1.8\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->-1 -->\n",
|
|
"<g class=\"edge\" id=\"edge4\">\n",
|
|
"<title>1->-1</title>\n",
|
|
"<path d=\"M370.4954,-75.019C392.317,-75.1617 423.4578,-77.5377 448.4802,-88 460.4755,-93.0154 471.7055,-103.2963 478.3353,-110.1701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"none\" points=\"476.7574,-112.0751 483.2896,-115.587 480.3732,-108.7681 476.7574,-112.0751\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"388.4802\" y=\"-91.8\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge10\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path d=\"M473.5675,-45.4167C469.7567,-56.166 473.3943,-67 484.4802,-67 493.1411,-67 497.2559,-60.3875 496.8245,-52.3688\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"495.393,-45.4167 499.8901,-51.6375 496.0989,-48.8447 496.8049,-52.2728 496.8049,-52.2728 496.8049,-52.2728 496.0989,-48.8447 493.7196,-52.9082 495.393,-45.4167 495.393,-45.4167\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"484.4802\" y=\"-70.8\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- -1->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge5\">\n",
|
|
"<title>-1->0</title>\n",
|
|
"<path d=\"M482.81,-117.7813C469.8861,-123.7243 384.5254,-161.1292 316.7401,-145 280.6766,-136.4188 243.2381,-115.861 218.4641,-100.343\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"212.447,-96.5167 220.0442,-97.6149 215.4004,-98.3949 218.3539,-100.273 218.3539,-100.273 218.3539,-100.273 215.4004,-98.3949 216.6635,-102.9311 212.447,-96.5167 212.447,-96.5167\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- -1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge6\">\n",
|
|
"<title>-1->1</title>\n",
|
|
"<path d=\"M482.5839,-116.998C472.5391,-116.9322 424.642,-115.9243 388.4802,-103 382.8192,-100.9767 377.0889,-98.1972 371.7029,-95.1872\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"365.5631,-91.5793 373.1942,-92.41 368.5807,-93.3525 371.5983,-95.1258 371.5983,-95.1258 371.5983,-95.1258 368.5807,-93.3525 370.0024,-97.8416 365.5631,-91.5793 365.5631,-91.5793\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- -4->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge12\">\n",
|
|
"<title>-4->0</title>\n",
|
|
"<path d=\"M123.1901,-53.6921C128.1831,-55.737 143.4371,-61.984 158.0967,-67.9877\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"164.7513,-70.713 157.0797,-70.975 161.5124,-69.3865 158.2735,-68.06 158.2735,-68.06 158.2735,-68.06 161.5124,-69.3865 159.4673,-65.145 164.7513,-70.713 164.7513,-70.713\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g class=\"node\" id=\"node8\">\n",
|
|
"<title>4</title>\n",
|
|
"<ellipse cx=\"189.8701\" cy=\"-18\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"189.8701\" y=\"-14.3\">4</text>\n",
|
|
"</g>\n",
|
|
"<!-- -4->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge13\">\n",
|
|
"<title>-4->4</title>\n",
|
|
"<path d=\"M123.1901,-52.1348C129.2533,-49.0309 150.4479,-38.181 167.3347,-29.5363\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"173.7863,-26.2336 168.9907,-32.2274 170.6708,-27.8285 167.5553,-29.4234 167.5553,-29.4234 167.5553,-29.4234 170.6708,-27.8285 166.1199,-26.6195 173.7863,-26.2336 173.7863,-26.2336\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 4->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge14\">\n",
|
|
"<title>4->3</title>\n",
|
|
"<path d=\"M171.6742,-20.1747C148.2497,-22.9744 107.433,-27.8528 81.0779,-31.0027\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"74.0543,-31.8422 80.631,-27.8836 77.5296,-31.4268 81.0048,-31.0114 81.0048,-31.0114 81.0048,-31.0114 77.5296,-31.4268 81.3787,-34.1391 74.0543,-31.8422 74.0543,-31.8422\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"121.5\" y=\"-30.8\">1</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"<IPython.core.display.SVG object>"
|
|
]
|
|
},
|
|
"execution_count": 7,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"aut = spot.automaton('''\n",
|
|
"HOA: v1\n",
|
|
"States: 5\n",
|
|
"Start: 3\n",
|
|
"acc-name: co-Buchi\n",
|
|
"Acceptance: 1 Fin(0)\n",
|
|
"AP: 3 \"a\" \"b\" \"p\"\n",
|
|
"--BODY--\n",
|
|
"State: 0 \"(a;a*;b)*\" {0}\n",
|
|
" [0] 1\n",
|
|
" [!0] 2\n",
|
|
"State: 1 \"a*;b;(a;a*;b)*\" {0}\n",
|
|
" [0&1&2] 0&1\n",
|
|
" [!1&2] 1\n",
|
|
" [!0&!1] 2\n",
|
|
" [!0&1&2] 0\n",
|
|
"State: 2\n",
|
|
" [t] 2\n",
|
|
"State: 3\n",
|
|
" [0] 4&0\n",
|
|
"State: 4\n",
|
|
" [t] 3\n",
|
|
"--END--\n",
|
|
"'''); aut.show('.1ab')"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 8,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<!-- Generated by graphviz version 2.40.1 (20161225.0304)\n",
|
|
" -->\n",
|
|
"<!-- Title: G Pages: 1 -->\n",
|
|
"<svg width=\"734pt\" height=\"176pt\"\n",
|
|
" viewBox=\"0.00 0.00 734.00 175.72\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
|
"<g id=\"graph0\" class=\"graph\" transform=\"scale(.7059 .7059) rotate(0) translate(4 244.9146)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" stroke=\"transparent\" points=\"-4,4 -4,-244.9146 1035.7636,-244.9146 1035.7636,4 -4,4\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"494.8818\" y=\"-226.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">Inf(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"516.8818\" y=\"-226.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"532.8818\" y=\"-226.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)</text>\n",
|
|
"<text text-anchor=\"start\" x=\"492.8818\" y=\"-212.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">[Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\">\n",
|
|
"<title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"65\" cy=\"-63.9146\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"60.5\" y=\"-60.2146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M1.2244,-63.9146C4.383,-63.9146 17.3969,-63.9146 30.8528,-63.9146\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"37.8798,-63.9146 30.8799,-67.0647 34.3798,-63.9146 30.8798,-63.9147 30.8798,-63.9147 30.8798,-63.9147 34.3798,-63.9146 30.8798,-60.7647 37.8798,-63.9146 37.8798,-63.9146\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node3\" class=\"node\">\n",
|
|
"<title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"172.5975\" cy=\"-79.9146\" rx=\"28.6953\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"158.5975\" y=\"-76.2146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">~0,4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M81.9892,-49.6831C94.1704,-41.2652 111.0084,-33.2581 126,-38.9146 136.6489,-42.9325 146.443,-50.6146 154.2748,-58.2531\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"159.3697,-63.4889 152.2303,-60.6689 156.9288,-60.9805 154.4878,-58.4721 154.4878,-58.4721 154.4878,-58.4721 156.9288,-60.9805 156.7454,-56.2753 159.3697,-63.4889 159.3697,-63.4889\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"114.5\" y=\"-57.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"110\" y=\"-42.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->0 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\">\n",
|
|
"<title>1->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M144.4263,-75.7255C130.3918,-73.6385 113.321,-71.1001 98.6073,-68.9121\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"91.5971,-67.8697 98.9844,-65.7836 95.0591,-68.3845 98.521,-68.8993 98.521,-68.8993 98.521,-68.8993 95.0591,-68.3845 98.0576,-72.0151 91.5971,-67.8697 91.5971,-67.8697\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"112.5\" y=\"-90.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"110\" y=\"-75.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g id=\"node4\" class=\"node\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"306.7924\" cy=\"-79.9146\" rx=\"28.6953\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"292.7924\" y=\"-76.2146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3,~1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M201.3856,-79.9146C221.728,-79.9146 249.1354,-79.9146 270.904,-79.9146\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"278.0518,-79.9146 271.0519,-83.0647 274.5518,-79.9146 271.0518,-79.9147 271.0518,-79.9147 271.0518,-79.9147 274.5518,-79.9146 271.0518,-76.7647 278.0518,-79.9146 278.0518,-79.9146\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"236.1949\" y=\"-83.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g id=\"node5\" class=\"node\">\n",
|
|
"<title>3</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"476.9862\" cy=\"-26.9146\" rx=\"41.6928\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"452.9862\" y=\"-23.2146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">4,~1,~0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->3 -->\n",
|
|
"<g id=\"edge5\" class=\"edge\">\n",
|
|
"<title>2->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M318.0397,-62.8901C326.3598,-51.8921 338.7574,-38.4548 353.3899,-31.9146 377.1988,-21.2728 406.2314,-19.6021 430.1743,-20.786\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"437.43,-21.2383 430.2476,-23.9466 433.9368,-21.0205 430.4436,-20.8027 430.4436,-20.8027 430.4436,-20.8027 433.9368,-21.0205 430.6396,-17.6588 437.43,-21.2383 437.43,-21.2383\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"355.3899\" y=\"-35.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g id=\"node6\" class=\"node\">\n",
|
|
"<title>4</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"838.1719\" cy=\"-83.9146\" rx=\"36.2938\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"818.1719\" y=\"-80.2146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">0,4,~1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->4 -->\n",
|
|
"<g id=\"edge6\" class=\"edge\">\n",
|
|
"<title>2->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M323.1157,-95.1989C331.4932,-102.0134 342.2628,-109.3066 353.3899,-112.9146 444.3677,-142.4149 691.1156,-136.6094 783.7751,-112.9146 792.9463,-110.5693 802.274,-106.3826 810.5551,-101.9069\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"816.6637,-98.4537 812.1201,-104.6407 813.6169,-100.1761 810.57,-101.8985 810.57,-101.8985 810.57,-101.8985 813.6169,-100.1761 809.0198,-99.1563 816.6637,-98.4537 816.6637,-98.4537\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"536.5825\" y=\"-136.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->0 -->\n",
|
|
"<g id=\"edge7\" class=\"edge\">\n",
|
|
"<title>3->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M438.9537,-19.5653C431.8151,-18.4613 424.3947,-17.4982 417.3899,-16.9146 389.0436,-14.5529 381.819,-15.9812 353.3899,-16.9146 245.0415,-20.4721 212.4005,2.6685 110,-32.9146 102.0413,-35.6802 94.1887,-40.2579 87.3265,-45.0576\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"81.3282,-49.4822 85.0915,-42.7919 84.1448,-47.4045 86.9614,-45.3268 86.9614,-45.3268 86.9614,-45.3268 84.1448,-47.4045 88.8313,-47.8618 81.3282,-49.4822 81.3282,-49.4822\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"219.1949\" y=\"-33.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"231.6949\" y=\"-18.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->2 -->\n",
|
|
"<g id=\"edge8\" class=\"edge\">\n",
|
|
"<title>3->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M444.2636,-38.1174C435.5496,-41.04 426.129,-44.1453 417.3899,-46.9146 391.5359,-55.1074 362.1042,-63.8617 340.1052,-70.2935\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"333.2378,-72.2966 339.0758,-67.3125 336.5978,-71.3165 339.9578,-70.3365 339.9578,-70.3365 339.9578,-70.3365 336.5978,-71.3165 340.8399,-73.3605 333.2378,-72.2966 333.2378,-72.2966\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"353.3899\" y=\"-69.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5 -->\n",
|
|
"<g id=\"node7\" class=\"node\">\n",
|
|
"<title>5</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"1003.1661\" cy=\"-45.9146\" rx=\"28.6953\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"989.1661\" y=\"-42.2146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3,~0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->5 -->\n",
|
|
"<g id=\"edge9\" class=\"edge\">\n",
|
|
"<title>3->5</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M512.3834,-17.3857C520.2932,-15.5968 528.6804,-13.9617 536.5825,-12.9146 721.9029,11.6409 772.9517,-.8224 956.5686,-35.9146 960.6296,-36.6907 964.8805,-37.5448 969.0926,-38.4169\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"976.1041,-39.891 968.6057,-41.5334 972.679,-39.1709 969.2538,-38.4508 969.2538,-38.4508 969.2538,-38.4508 972.679,-39.1709 969.902,-35.3682 976.1041,-39.891 976.1041,-39.891\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"719.7751\" y=\"-9.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6 -->\n",
|
|
"<g id=\"node8\" class=\"node\">\n",
|
|
"<title>6</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"660.1788\" cy=\"-44.9146\" rx=\"41.6928\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"636.1788\" y=\"-41.2146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3,~1,~0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->6 -->\n",
|
|
"<g id=\"edge10\" class=\"edge\">\n",
|
|
"<title>3->6</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M514.0407,-35.2711C521.4728,-36.6938 529.2509,-38.0038 536.5825,-38.9146 561.1098,-41.9618 588.5541,-43.4819 611.3398,-44.2321\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"618.5645,-44.4496 611.4728,-47.3874 615.066,-44.3442 611.5676,-44.2389 611.5676,-44.2389 611.5676,-44.2389 615.066,-44.3442 611.6625,-41.0903 618.5645,-44.4496 618.5645,-44.4496\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"538.5825\" y=\"-46.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->0 -->\n",
|
|
"<g id=\"edge11\" class=\"edge\">\n",
|
|
"<title>4->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M822.8122,-100.426C812.5671,-110.6463 798.3461,-123.3985 783.7751,-131.9146 733.5611,-161.2623 718.34,-174.9146 660.1788,-174.9146 172.5975,-174.9146 172.5975,-174.9146 172.5975,-174.9146 124.7398,-174.9146 91.3484,-121.0596 75.4899,-88.3749\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"72.3731,-81.7487 78.203,-86.7422 73.8629,-84.9158 75.3526,-88.0829 75.3526,-88.0829 75.3526,-88.0829 73.8629,-84.9158 72.5022,-89.4237 72.3731,-81.7487 72.3731,-81.7487\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"364.8899\" y=\"-193.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"377.3899\" y=\"-178.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->2 -->\n",
|
|
"<g id=\"edge12\" class=\"edge\">\n",
|
|
"<title>4->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M801.5976,-84.6791C795.6409,-84.7771 789.5366,-84.8616 783.7751,-84.9146 592.5008,-86.6726 544.399,-95.1331 353.3899,-84.9146 349.8252,-84.7239 346.1136,-84.4517 342.4103,-84.1315\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"335.3394,-83.4655 342.604,-80.9859 338.824,-83.7938 342.3086,-84.122 342.3086,-84.122 342.3086,-84.122 338.824,-83.7938 342.0131,-87.2582 335.3394,-83.4655 335.3394,-83.4655\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"536.5825\" y=\"-92.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->5 -->\n",
|
|
"<g id=\"edge13\" class=\"edge\">\n",
|
|
"<title>4->5</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M855.8637,-67.9202C865.867,-59.9559 879.0519,-51.1428 892.5686,-46.9146 916.9365,-39.2919 945.8282,-39.318 967.9702,-41.1037\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"975.2042,-41.7683 967.9454,-44.2646 971.7189,-41.448 968.2335,-41.1278 968.2335,-41.1278 968.2335,-41.1278 971.7189,-41.448 968.5217,-37.991 975.2042,-41.7683 975.2042,-41.7683\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"892.5686\" y=\"-50.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->6 -->\n",
|
|
"<g id=\"edge14\" class=\"edge\">\n",
|
|
"<title>4->6</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M826.0731,-66.7856C816.2651,-54.4956 801.2362,-38.9179 783.7751,-31.9146 756.8675,-21.1225 724.1564,-25.2407 699.1467,-31.5904\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"692.3082,-33.4299 698.2496,-28.5696 695.688,-32.5207 699.0679,-31.6115 699.0679,-31.6115 699.0679,-31.6115 695.688,-32.5207 699.8862,-34.6534 692.3082,-33.4299 692.3082,-33.4299\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"721.7751\" y=\"-35.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->4 -->\n",
|
|
"<g id=\"edge15\" class=\"edge\">\n",
|
|
"<title>5->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M978.2228,-55.235C971.2755,-57.6234 963.6826,-60.0432 956.5686,-61.9146 931.5738,-68.4899 903.11,-73.8449 880.3561,-77.625\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"873.1808,-78.7965 879.5817,-74.5596 876.635,-78.2325 880.0893,-77.6685 880.0893,-77.6685 880.0893,-77.6685 876.635,-78.2325 880.5969,-80.7773 873.1808,-78.7965 873.1808,-78.7965\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"921.0686\" y=\"-78.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->3 -->\n",
|
|
"<g id=\"edge16\" class=\"edge\">\n",
|
|
"<title>6->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M633.3101,-30.977C623.3119,-26.5134 611.692,-22.1504 600.5825,-19.9146 574.996,-14.7653 545.8723,-16.0765 522.3247,-18.8776\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"515.206,-19.7892 521.7491,-15.7755 518.6776,-19.3446 522.1493,-18.9 522.1493,-18.9 522.1493,-18.9 518.6776,-19.3446 522.5494,-22.0244 515.206,-19.7892 515.206,-19.7892\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"538.5825\" y=\"-23.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->4 -->\n",
|
|
"<g id=\"edge17\" class=\"edge\">\n",
|
|
"<title>6->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M698.4293,-52.1158C722.9029,-56.8554 755.2904,-63.373 783.7751,-69.9146 788.741,-71.0551 793.9459,-72.3132 799.0853,-73.5934\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"806.0244,-75.344 798.4665,-76.6859 802.6307,-74.4878 799.237,-73.6316 799.237,-73.6316 799.237,-73.6316 802.6307,-74.4878 800.0076,-70.5773 806.0244,-75.344 806.0244,-75.344\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"719.7751\" y=\"-73.7146\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b & p</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text/plain": [
|
|
"<spot.impl.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7f7400079150> >"
|
|
]
|
|
},
|
|
"execution_count": 8,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"spot.remove_alternation(aut, True)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 9,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<svg height=\"308pt\" viewBox=\"0.00 0.00 522.82 307.87\" width=\"523pt\" 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 303.8701)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" points=\"-4,4 -4,-303.8701 518.8203,-303.8701 518.8203,4 -4,4\" stroke=\"transparent\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"234.9102\" y=\"-285.6701\">Fin(</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"259.9102\" y=\"-285.6701\">⓿</text>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"275.9102\" y=\"-285.6701\">)</text>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"224.9102\" y=\"-271.6701\">[co-Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- -7 -->\n",
|
|
"<g class=\"node\" id=\"node2\">\n",
|
|
"<title>-7</title>\n",
|
|
"<ellipse cx=\"39.8\" cy=\"-72.8701\" fill=\"#ffffaa\" rx=\"1.8\" ry=\"1.8\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- I->-7 -->\n",
|
|
"<g class=\"edge\" id=\"edge1\">\n",
|
|
"<title>I->-7</title>\n",
|
|
"<path d=\"M1.1821,-72.8701C4.6508,-72.8701 20.5694,-72.8701 30.8552,-72.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"none\" points=\"30.9898,-75.3202 37.9898,-72.8701 30.9898,-70.4202 30.9898,-75.3202\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 0 -->\n",
|
|
"<g class=\"node\" id=\"node3\">\n",
|
|
"<title>0</title>\n",
|
|
"<g id=\"a_node3\"><a xlink:title=\"(a;a*;b)*\">\n",
|
|
"<ellipse cx=\"105.4701\" cy=\"-121.8701\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"100.9701\" y=\"-125.6701\">0</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"97.4701\" y=\"-110.6701\">⓿</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- -7->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge2\">\n",
|
|
"<title>-7->0</title>\n",
|
|
"<path d=\"M41.4233,-74.0813C46.5497,-77.9064 62.9371,-90.1339 77.8512,-101.2621\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"83.6827,-105.6133 76.1885,-103.9518 80.8775,-103.5202 78.0723,-101.4271 78.0723,-101.4271 78.0723,-101.4271 80.8775,-103.5202 79.9561,-98.9024 83.6827,-105.6133 83.6827,-105.6133\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g class=\"node\" id=\"node4\">\n",
|
|
"<title>3</title>\n",
|
|
"<ellipse cx=\"105.4701\" cy=\"-25.8701\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"105.4701\" y=\"-22.1701\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- -7->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge3\">\n",
|
|
"<title>-7->3</title>\n",
|
|
"<path d=\"M41.4233,-71.7083C47.3691,-67.4529 68.4633,-52.3557 84.8375,-40.6367\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"90.6198,-36.4984 86.7608,-43.134 87.7736,-38.5354 84.9274,-40.5724 84.9274,-40.5724 84.9274,-40.5724 87.7736,-38.5354 83.0941,-38.0109 90.6198,-36.4984 90.6198,-36.4984\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g class=\"node\" id=\"node5\">\n",
|
|
"<title>1</title>\n",
|
|
"<g id=\"a_node5\"><a xlink:title=\"a*;b;(a;a*;b)*\">\n",
|
|
"<ellipse cx=\"259.2102\" cy=\"-138.8701\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"254.7102\" y=\"-142.6701\">1</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"251.2102\" y=\"-127.6701\">⓿</text>\n",
|
|
"</a>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge4\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path d=\"M130.7509,-131.8102C137.0542,-133.8722 143.8644,-135.7552 150.3401,-136.8701 175.1124,-141.135 203.5224,-141.509 225.1079,-140.8834\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"232.1515,-140.6371 225.2659,-144.0299 228.6537,-140.7595 225.1558,-140.8819 225.1558,-140.8819 225.1558,-140.8819 228.6537,-140.7595 225.0457,-137.7338 232.1515,-140.6371 232.1515,-140.6371\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"178.8401\" y=\"-144.6701\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g class=\"node\" id=\"node6\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse cx=\"408.9503\" cy=\"-212.8701\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"408.9503\" y=\"-209.1701\">2</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge5\">\n",
|
|
"<title>0->2</title>\n",
|
|
"<path d=\"M124.9032,-141.0065C148.1557,-162.3705 189.3641,-195.5611 232.3401,-207.8701 284.4281,-222.7888 348.7191,-219.5001 383.5736,-216.0275\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"390.9587,-215.2442 384.33,-219.115 387.4782,-215.6134 383.9977,-215.9826 383.9977,-215.9826 383.9977,-215.9826 387.4782,-215.6134 383.6655,-212.8502 390.9587,-215.2442 390.9587,-215.2442\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"253.7102\" y=\"-220.6701\">!a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge13\">\n",
|
|
"<title>3->3</title>\n",
|
|
"<path d=\"M97.8021,-42.1603C95.9532,-52.2592 98.5091,-61.8701 105.4701,-61.8701 110.6908,-61.8701 113.4337,-56.464 113.6988,-49.5004\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"113.138,-42.1603 116.8122,-48.9 113.4046,-45.6502 113.6713,-49.14 113.6713,-49.14 113.6713,-49.14 113.4046,-45.6502 110.5305,-49.38 113.138,-42.1603 113.138,-42.1603\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"101.9701\" y=\"-65.6701\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- -4 -->\n",
|
|
"<g class=\"node\" id=\"node8\">\n",
|
|
"<title>-4</title>\n",
|
|
"<ellipse cx=\"259.2102\" cy=\"-26.8701\" fill=\"#ffffaa\" rx=\"1.8\" ry=\"1.8\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 3->-4 -->\n",
|
|
"<g class=\"edge\" id=\"edge14\">\n",
|
|
"<title>3->-4</title>\n",
|
|
"<path d=\"M123.7098,-25.9887C156.7174,-26.2034 225.2338,-26.6491 250.0141,-26.8102\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"none\" points=\"250.189,-29.2613 257.2048,-26.857 250.2209,-24.3614 250.189,-29.2613\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"176.8401\" y=\"-30.6701\">!a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge11\">\n",
|
|
"<title>1->0</title>\n",
|
|
"<path d=\"M235.6812,-125.5122C228.9933,-122.373 221.5604,-119.4761 214.3401,-117.8701 189.6248,-112.3726 160.9878,-113.7184 139.2888,-116.2537\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"132.2117,-117.1509 138.7599,-113.1454 135.6839,-116.7107 139.1561,-116.2704 139.1561,-116.2704 139.1561,-116.2704 135.6839,-116.7107 139.5524,-119.3954 132.2117,-117.1509 132.2117,-117.1509\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"150.3401\" y=\"-121.6701\">!a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge9\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path d=\"M245.6739,-162.4165C244.0028,-173.7422 248.5149,-183.7401 259.2102,-183.7401 267.5659,-183.7401 272.1477,-177.6379 272.9555,-169.5676\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"272.7464,-162.4165 276.0997,-169.3214 272.8488,-165.915 272.9511,-169.4135 272.9511,-169.4135 272.9511,-169.4135 272.8488,-165.915 269.8024,-169.5056 272.7464,-162.4165 272.7464,-162.4165\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"239.7102\" y=\"-187.5401\">!b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge10\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path d=\"M283.6018,-150.9241C311.869,-164.8935 358.1053,-187.743 385.8232,-201.4409\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"392.4489,-204.7152 384.7778,-204.4379 389.3111,-203.1646 386.1734,-201.6139 386.1734,-201.6139 386.1734,-201.6139 389.3111,-203.1646 387.569,-198.7899 392.4489,-204.7152 392.4489,-204.7152\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"313.5802\" y=\"-192.6701\">!a & !b</text>\n",
|
|
"</g>\n",
|
|
"<!-- -1 -->\n",
|
|
"<g class=\"node\" id=\"node7\">\n",
|
|
"<title>-1</title>\n",
|
|
"<ellipse cx=\"408.9503\" cy=\"-108.8701\" fill=\"#ffffaa\" rx=\"1.8\" ry=\"1.8\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->-1 -->\n",
|
|
"<g class=\"edge\" id=\"edge6\">\n",
|
|
"<title>1->-1</title>\n",
|
|
"<path d=\"M286.0227,-134.4774C307.2642,-130.8854 337.6583,-125.4968 364.0802,-119.8701 376.5533,-117.2138 390.8414,-113.6138 399.8784,-111.267\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"none\" points=\"400.7568,-113.5694 406.9033,-109.4193 399.5103,-108.8306 400.7568,-113.5694\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"304.0802\" y=\"-134.6701\">a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g class=\"edge\" id=\"edge12\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path d=\"M400.5853,-229.1603C398.5682,-239.2592 401.3565,-248.8701 408.9503,-248.8701 414.6456,-248.8701 417.6379,-243.464 417.9271,-236.5004\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"417.3153,-229.1603 421.0359,-235.8745 417.606,-232.6482 417.8968,-236.1361 417.8968,-236.1361 417.8968,-236.1361 417.606,-232.6482 414.7577,-236.3978 417.3153,-229.1603 417.3153,-229.1603\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"408.9503\" y=\"-252.6701\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- -1->0 -->\n",
|
|
"<g class=\"edge\" id=\"edge7\">\n",
|
|
"<title>-1->0</title>\n",
|
|
"<path d=\"M406.8556,-108.611C388.6636,-106.4155 255.5977,-91.4505 150.3401,-109.8701 146.4679,-110.5477 142.4433,-111.4024 138.4648,-112.3422\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"131.3961,-114.1057 137.4254,-109.3548 134.792,-113.2584 138.1879,-112.4112 138.1879,-112.4112 138.1879,-112.4112 134.792,-113.2584 138.9505,-115.4675 131.3961,-114.1057 131.3961,-114.1057\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- -1->1 -->\n",
|
|
"<g class=\"edge\" id=\"edge8\">\n",
|
|
"<title>-1->1</title>\n",
|
|
"<path d=\"M406.9218,-108.9821C396.1682,-109.6086 344.7828,-113.012 304.0802,-122.8701 299.8603,-123.8921 295.4841,-125.1679 291.1932,-126.5503\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"284.5553,-128.7894 290.1813,-123.5672 287.8717,-127.6707 291.1881,-126.552 291.1881,-126.552 291.1881,-126.552 287.8717,-127.6707 292.1949,-129.5367 284.5553,-128.7894 284.5553,-128.7894\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- -4->3 -->\n",
|
|
"<g class=\"edge\" id=\"edge15\">\n",
|
|
"<title>-4->3</title>\n",
|
|
"<path d=\"M257.1572,-26.6215C250.8054,-25.8665 230.9039,-23.6069 214.3401,-22.8701 185.9238,-21.606 178.7687,-21.9208 150.3401,-22.8701 144.0587,-23.0798 137.2909,-23.4543 130.9638,-23.8692\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"123.7942,-24.3673 130.559,-20.7396 127.2858,-24.1247 130.7774,-23.882 130.7774,-23.882 130.7774,-23.882 127.2858,-24.1247 130.9957,-27.0244 123.7942,-24.3673 123.7942,-24.3673\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g class=\"node\" id=\"node9\">\n",
|
|
"<title>4</title>\n",
|
|
"<ellipse cx=\"408.9503\" cy=\"-26.8701\" fill=\"#ffffaa\" rx=\"26.7407\" ry=\"26.7407\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"404.4503\" y=\"-30.6701\">4</text>\n",
|
|
"<text fill=\"#1f78b4\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"400.9503\" y=\"-15.6701\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- -4->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge16\">\n",
|
|
"<title>-4->4</title>\n",
|
|
"<path d=\"M261.3269,-26.8701C273.4745,-26.8701 335.1696,-26.8701 374.8605,-26.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"381.9987,-26.8701 374.9987,-30.0202 378.4987,-26.8701 374.9987,-26.8702 374.9987,-26.8702 374.9987,-26.8702 378.4987,-26.8701 374.9987,-23.7202 381.9987,-26.8701 381.9987,-26.8701\" stroke=\"#000000\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g class=\"edge\" id=\"edge17\">\n",
|
|
"<title>4->4</title>\n",
|
|
"<path d=\"M400.0294,-52.2401C399.4142,-62.7939 402.3878,-71.7401 408.9503,-71.7401 413.9747,-71.7401 416.8954,-66.496 417.7123,-59.3013\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"417.8712,-52.2401 420.8629,-59.3092 417.7924,-55.7392 417.7137,-59.2383 417.7137,-59.2383 417.7137,-59.2383 417.7924,-55.7392 414.5645,-59.1674 417.8712,-52.2401 417.8712,-52.2401\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"403.4503\" y=\"-75.5401\">!a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5 -->\n",
|
|
"<g class=\"node\" id=\"node10\">\n",
|
|
"<title>5</title>\n",
|
|
"<ellipse cx=\"496.8203\" cy=\"-26.8701\" fill=\"#ffffaa\" rx=\"18\" ry=\"18\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"496.8203\" y=\"-23.1701\">5</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->5 -->\n",
|
|
"<g class=\"edge\" id=\"edge18\">\n",
|
|
"<title>4->5</title>\n",
|
|
"<path d=\"M436.2713,-26.8701C447.4871,-26.8701 460.3969,-26.8701 471.4071,-26.8701\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"478.6819,-26.8701 471.6819,-30.0202 475.1819,-26.8701 471.6819,-26.8702 471.6819,-26.8702 471.6819,-26.8702 475.1819,-26.8701 471.6818,-23.7202 478.6819,-26.8701 478.6819,-26.8701\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"start\" x=\"453.8203\" y=\"-30.6701\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->5 -->\n",
|
|
"<g class=\"edge\" id=\"edge19\">\n",
|
|
"<title>5->5</title>\n",
|
|
"<path d=\"M490.0867,-43.9074C488.7125,-53.728 490.9571,-62.8701 496.8203,-62.8701 501.2178,-62.8701 503.5797,-57.7276 503.9061,-51.0134\" fill=\"none\" stroke=\"#000000\"/>\n",
|
|
"<polygon fill=\"#000000\" points=\"503.554,-43.9074 507.0467,-50.7428 503.7272,-47.4031 503.9005,-50.8988 503.9005,-50.8988 503.9005,-50.8988 503.7272,-47.4031 500.7544,-51.0547 503.554,-43.9074 503.554,-43.9074\" stroke=\"#000000\"/>\n",
|
|
"<text fill=\"#000000\" font-family=\"Lato\" font-size=\"14.00\" text-anchor=\"middle\" x=\"496.8203\" y=\"-66.6701\">1</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"<IPython.core.display.SVG object>"
|
|
]
|
|
},
|
|
"execution_count": 9,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# Example from ADL's PSL2TGBA talk.\n",
|
|
"aut = spot.automaton('''\n",
|
|
"HOA: v1\n",
|
|
"States: 6\n",
|
|
"Start: 0&3\n",
|
|
"Acceptance: 1 Fin(0)\n",
|
|
"AP: 3 \"a\" \"b\" \"p\"\n",
|
|
"--BODY--\n",
|
|
"State: 0 \"(a;a*;b)*\" {0}\n",
|
|
" [0] 1\n",
|
|
" [!0] 2\n",
|
|
"State: 1 \"a*;b;(a;a*;b)*\" {0}\n",
|
|
" [0&1&2] 0&1\n",
|
|
" [!1&2] 1\n",
|
|
" [!0&!1] 2\n",
|
|
" [!0&1&2] 0\n",
|
|
"State: 2\n",
|
|
" [t] 2\n",
|
|
"State: 3\n",
|
|
" [0] 3\n",
|
|
" [!0] 3&4\n",
|
|
"State: 4 {0}\n",
|
|
" [!0] 4\n",
|
|
" [0] 5\n",
|
|
"State: 5\n",
|
|
" [t] 5\n",
|
|
"--END--\n",
|
|
"'''); aut.show('.1ab')"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 10,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<!-- Generated by graphviz version 2.40.1 (20161225.0304)\n",
|
|
" -->\n",
|
|
"<!-- Title: G Pages: 1 -->\n",
|
|
"<svg width=\"734pt\" height=\"336pt\"\n",
|
|
" viewBox=\"0.00 0.00 734.00 336.31\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
|
"<g id=\"graph0\" class=\"graph\" transform=\"scale(.755 .755) rotate(0) translate(4 441.4402)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" stroke=\"transparent\" points=\"-4,4 -4,-441.4402 968.1696,-441.4402 968.1696,4 -4,4\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"435.0848\" y=\"-423.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">Inf(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"457.0848\" y=\"-423.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"473.0848\" y=\"-423.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)&Inf(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"509.0848\" y=\"-423.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"<text text-anchor=\"start\" x=\"525.0848\" y=\"-423.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)</text>\n",
|
|
"<text text-anchor=\"start\" x=\"438.0848\" y=\"-409.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">[gen. Büchi 2]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\">\n",
|
|
"<title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"66.5975\" cy=\"-297.4402\" rx=\"28.6953\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"52.5975\" y=\"-293.7402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">~0,3</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M1.2423,-297.4402C4.4067,-297.4402 17.2233,-297.4402 30.6792,-297.4402\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"37.7263,-297.4402 30.7264,-300.5903 34.2263,-297.4402 30.7263,-297.4403 30.7263,-297.4403 30.7263,-297.4403 34.2263,-297.4402 30.7263,-294.2903 37.7263,-297.4402 37.7263,-297.4402\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node3\" class=\"node\">\n",
|
|
"<title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"175.7924\" cy=\"-188.4402\" rx=\"28.6953\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"161.7924\" y=\"-184.7402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3,~1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M82.2424,-281.8231C101.4874,-262.6125 134.2054,-229.9529 155.4028,-208.7934\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"160.5285,-203.6768 157.7997,-210.8516 158.0514,-206.1495 155.5743,-208.6222 155.5743,-208.6222 155.5743,-208.6222 158.0514,-206.1495 153.3489,-206.3928 160.5285,-203.6768 160.5285,-203.6768\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"117.6949\" y=\"-268.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"113.1949\" y=\"-253.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g id=\"node4\" class=\"node\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"815.1696\" cy=\"-199.4402\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"805.1696\" y=\"-195.7402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3,4</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->2 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\">\n",
|
|
"<title>0->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M79.0701,-313.9311C97.5353,-336.2833 134.4485,-373.4402 175.7924,-373.4402 175.7924,-373.4402 175.7924,-373.4402 699.7728,-373.4402 770.4527,-373.4402 800.4098,-272.4928 810.6742,-224.3774\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"812.1022,-217.4059 813.7834,-224.8956 811.3998,-220.8347 810.6975,-224.2635 810.6975,-224.2635 810.6975,-224.2635 811.3998,-220.8347 807.6116,-223.6314 812.1022,-217.4059 812.1022,-217.4059\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"424.6834\" y=\"-391.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"414.1834\" y=\"-377.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"430.1834\" y=\"-377.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M166.2236,-205.4775C164.2708,-215.2981 167.4604,-224.4402 175.7924,-224.4402 182.0414,-224.4402 185.3978,-219.2978 185.8616,-212.5835\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"185.3612,-205.4775 188.9952,-212.2389 185.6071,-208.9688 185.853,-212.4602 185.853,-212.4602 185.853,-212.4602 185.6071,-208.9688 182.7108,-212.6815 185.3612,-205.4775 185.3612,-205.4775\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"143.7924\" y=\"-243.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"167.7924\" y=\"-228.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g id=\"edge5\" class=\"edge\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M186.5427,-205.3047C210.2998,-240.2717 270.9773,-317.4402 343.7866,-317.4402 343.7866,-317.4402 343.7866,-317.4402 699.7728,-317.4402 751.8871,-317.4402 788.1974,-257.8811 804.8555,-223.3903\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"807.924,-216.8515 807.8018,-224.5267 806.4371,-220.02 804.9502,-223.1885 804.9502,-223.1885 804.9502,-223.1885 806.4371,-220.02 802.0986,-221.8503 807.924,-216.8515 807.924,-216.8515\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"501.2797\" y=\"-335.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"505.7797\" y=\"-321.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"521.7797\" y=\"-321.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g id=\"node5\" class=\"node\">\n",
|
|
"<title>4</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"343.7866\" cy=\"-23.4402\" rx=\"36.2938\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"323.7866\" y=\"-19.7402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3,4,~1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->4 -->\n",
|
|
"<g id=\"edge6\" class=\"edge\">\n",
|
|
"<title>1->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M177.8349,-170.2426C182.8473,-129.2645 197.2167,-31.8159 222.3899,-12.4402 247.0206,6.518 283.3483,.1016 309.8435,-8.8135\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"316.6956,-11.247 309.045,-11.8726 313.3974,-10.0756 310.0992,-8.9042 310.0992,-8.9042 310.0992,-8.9042 313.3974,-10.0756 311.1535,-5.9359 316.6956,-11.247 316.6956,-11.247\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"222.3899\" y=\"-31.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"247.8899\" y=\"-16.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5 -->\n",
|
|
"<g id=\"node6\" class=\"node\">\n",
|
|
"<title>5</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"699.7728\" cy=\"-145.4402\" rx=\"36.2938\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"679.7728\" y=\"-141.7402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3,4,~0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->5 -->\n",
|
|
"<g id=\"edge7\" class=\"edge\">\n",
|
|
"<title>1->5</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M191.9224,-173.5735C200.4176,-166.4913 211.3465,-158.4855 222.3899,-153.4402 295.0963,-120.223 318.7008,-123.9327 398.1834,-115.4402 491.7578,-105.442 601.7865,-124.0567 659.6056,-136.1844\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"666.7325,-137.7022 659.2299,-139.3249 663.3093,-136.9731 659.886,-136.244 659.886,-136.244 659.886,-136.244 663.3093,-136.9731 660.5422,-133.1631 666.7325,-137.7022 666.7325,-137.7022\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"398.1834\" y=\"-134.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"422.1834\" y=\"-119.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6 -->\n",
|
|
"<g id=\"node7\" class=\"node\">\n",
|
|
"<title>6</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"521.7797\" cy=\"-155.4402\" rx=\"41.6928\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"497.7797\" y=\"-151.7402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3,~1,~0</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->6 -->\n",
|
|
"<g id=\"edge8\" class=\"edge\">\n",
|
|
"<title>1->6</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M204.3525,-190.7765C243.98,-193.5192 317.8105,-196.8237 380.1834,-189.4402 414.669,-185.3579 452.9126,-175.8679 480.953,-167.9486\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"487.8536,-165.9733 481.9908,-170.9281 484.4887,-166.9365 481.1239,-167.8997 481.1239,-167.8997 481.1239,-167.8997 484.4887,-166.9365 480.257,-164.8714 487.8536,-165.9733 487.8536,-165.9733\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"313.7866\" y=\"-212.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"335.7866\" y=\"-197.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g id=\"edge9\" class=\"edge\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M805.9551,-216.4775C804.0746,-226.2981 807.1461,-235.4402 815.1696,-235.4402 821.1871,-235.4402 824.4192,-230.2978 824.8658,-223.5835\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"824.384,-216.4775 828.0004,-223.2483 824.6208,-219.9695 824.8577,-223.4615 824.8577,-223.4615 824.8577,-223.4615 824.6208,-219.9695 821.7149,-223.6746 824.384,-216.4775 824.384,-216.4775\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"809.6696\" y=\"-254.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"807.1696\" y=\"-239.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g id=\"node8\" class=\"node\">\n",
|
|
"<title>3</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"937.1696\" cy=\"-199.4402\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"937.1696\" y=\"-195.7402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">3</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->3 -->\n",
|
|
"<g id=\"edge10\" class=\"edge\">\n",
|
|
"<title>2->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M842.2711,-202.2407C848.165,-202.7403 854.3712,-203.183 860.1696,-203.4402 874.3778,-204.0704 877.9613,-204.0704 892.1696,-203.4402 895.7029,-203.2835 899.3878,-203.0578 903.0611,-202.7924\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"910.068,-202.2407 903.3369,-205.9306 906.5788,-202.5155 903.0896,-202.7903 903.0896,-202.7903 903.0896,-202.7903 906.5788,-202.5155 902.8423,-199.65 910.068,-202.2407 910.068,-202.2407\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"872.6696\" y=\"-221.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"860.1696\" y=\"-207.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"876.1696\" y=\"-207.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->1 -->\n",
|
|
"<g id=\"edge13\" class=\"edge\">\n",
|
|
"<title>4->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M313.8695,-33.9221C305.9163,-36.6998 297.3301,-39.6906 289.3899,-42.4402 259.6396,-52.7422 244.9994,-43.5309 222.3899,-65.4402 195.1428,-91.8434 183.6353,-135.7865 178.9141,-163.3793\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"177.8045,-170.3607 175.7924,-162.953 178.3539,-166.904 178.9033,-163.4474 178.9033,-163.4474 178.9033,-163.4474 178.3539,-166.904 182.0143,-163.9419 177.8045,-170.3607 177.8045,-170.3607\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"223.8899\" y=\"-84.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"247.8899\" y=\"-69.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->2 -->\n",
|
|
"<g id=\"edge14\" class=\"edge\">\n",
|
|
"<title>4->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M377.9992,-16.6628C435.7122,-6.8706 554.9591,6.2195 645.376,-31.4402 717.208,-61.359 774.9611,-137.6789 800.6814,-176.3026\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"804.8202,-182.6112 798.3465,-178.4862 802.9003,-179.6847 800.9803,-176.7583 800.9803,-176.7583 800.9803,-176.7583 802.9003,-179.6847 803.6141,-175.0304 804.8202,-182.6112 804.8202,-182.6112\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"592.876\" y=\"-50.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"605.376\" y=\"-35.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->4 -->\n",
|
|
"<g id=\"edge15\" class=\"edge\">\n",
|
|
"<title>4->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M328.6694,-40.1042C325.3101,-50.0652 330.3491,-59.4402 343.7866,-59.4402 353.8647,-59.4402 359.2187,-54.1667 359.8486,-47.3278\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"358.9038,-40.1042 362.9351,-46.6366 359.3578,-43.5747 359.8117,-47.0451 359.8117,-47.0451 359.8117,-47.0451 359.3578,-43.5747 356.6884,-47.4537 358.9038,-40.1042 358.9038,-40.1042\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"310.2866\" y=\"-63.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->5 -->\n",
|
|
"<g id=\"edge16\" class=\"edge\">\n",
|
|
"<title>4->5</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M380.1466,-25.4276C439.4311,-30.0716 558.9665,-45.3942 645.376,-95.4402 658.1132,-102.8172 670.3612,-113.6269 679.9993,-123.3098\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"685.0719,-128.5442 677.9383,-125.7094 682.6362,-126.0308 680.2005,-123.5173 680.2005,-123.5173 680.2005,-123.5173 682.6362,-126.0308 682.4626,-121.3252 685.0719,-128.5442 685.0719,-128.5442\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"489.7797\" y=\"-62.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & b & p</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->6 -->\n",
|
|
"<g id=\"edge17\" class=\"edge\">\n",
|
|
"<title>4->6</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M377.5123,-30.2543C407.5962,-36.8401 448.8821,-47.2857 462.1834,-57.4402 486.855,-76.2749 503.5771,-108.5061 512.8835,-130.8369\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"515.5343,-137.4236 509.9986,-132.1058 514.2275,-134.1766 512.9208,-130.9297 512.9208,-130.9297 512.9208,-130.9297 514.2275,-134.1766 515.8431,-129.7537 515.5343,-137.4236 515.5343,-137.4236\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"400.1834\" y=\"-76.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"422.1834\" y=\"-61.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->1 -->\n",
|
|
"<g id=\"edge18\" class=\"edge\">\n",
|
|
"<title>5->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M682.074,-161.5819C657.5754,-182.6427 610.9449,-218.2455 563.376,-230.4402 453.1606,-258.6947 420.2124,-242.1656 307.3899,-227.4402 268.8035,-222.404 259.5026,-218.1412 222.3899,-206.4402 217.1558,-204.79 211.6621,-202.8557 206.3569,-200.8787\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"199.7716,-198.3698 207.4344,-197.9184 203.0423,-199.6159 206.3129,-200.862 206.3129,-200.862 206.3129,-200.862 203.0423,-199.6159 205.1914,-203.8056 199.7716,-198.3698 199.7716,-198.3698\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"426.6834\" y=\"-264.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"422.1834\" y=\"-249.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->2 -->\n",
|
|
"<g id=\"edge19\" class=\"edge\">\n",
|
|
"<title>5->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M736.16,-146.2264C747.5034,-147.6033 759.7599,-150.3134 770.1696,-155.4402 780.6823,-160.6178 790.2847,-169.1798 797.8944,-177.3817\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"802.831,-182.9564 795.832,-179.8041 800.5106,-180.3361 798.1902,-177.7158 798.1902,-177.7158 798.1902,-177.7158 800.5106,-180.3361 800.5485,-175.6275 802.831,-182.9564 802.831,-182.9564\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"756.6696\" y=\"-174.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"754.1696\" y=\"-159.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->1 -->\n",
|
|
"<g id=\"edge20\" class=\"edge\">\n",
|
|
"<title>6->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M480.4959,-152.4516C437.1896,-150.014 367.2326,-148.0514 307.3899,-155.4402 272.8408,-159.706 234.3226,-170.0451 207.9331,-178.0232\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"201.1605,-180.0995 206.9297,-175.036 204.5068,-179.0736 207.8531,-178.0477 207.8531,-178.0477 207.8531,-178.0477 204.5068,-179.0736 208.7764,-181.0594 201.1605,-180.0995 201.1605,-180.0995\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"311.7866\" y=\"-174.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & !b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"335.7866\" y=\"-159.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->2 -->\n",
|
|
"<g id=\"edge21\" class=\"edge\">\n",
|
|
"<title>6->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M545.8166,-170.3501C556.339,-176.1216 569.0725,-182.1266 581.376,-185.4402 650.51,-204.0597 735.1461,-203.6889 781.2528,-201.6428\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"788.3135,-201.3026 781.4733,-204.7859 784.8176,-201.4711 781.3217,-201.6395 781.3217,-201.6395 781.3217,-201.6395 784.8176,-201.4711 781.17,-198.4932 788.3135,-201.3026 788.3135,-201.3026\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"679.2728\" y=\"-220.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & !b</text>\n",
|
|
"<text text-anchor=\"start\" x=\"683.7728\" y=\"-206.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"699.7728\" y=\"-206.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->5 -->\n",
|
|
"<g id=\"edge22\" class=\"edge\">\n",
|
|
"<title>6->5</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M563.0623,-153.1209C591.0858,-151.5464 628.0705,-149.4686 656.5046,-147.8711\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"663.5387,-147.4759 656.7264,-151.0137 660.0442,-147.6723 656.5497,-147.8686 656.5497,-147.8686 656.5497,-147.8686 660.0442,-147.6723 656.373,-144.7236 663.5387,-147.4759 663.5387,-147.4759\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"581.376\" y=\"-170.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a & b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"605.376\" y=\"-155.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->6 -->\n",
|
|
"<g id=\"edge23\" class=\"edge\">\n",
|
|
"<title>6->6</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M505.9594,-172.1042C502.4438,-182.0652 507.7172,-191.4402 521.7797,-191.4402 532.3266,-191.4402 537.9296,-186.1667 538.5888,-179.3278\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"537.6,-172.1042 541.6703,-178.6123 538.0747,-175.5719 538.5494,-179.0396 538.5494,-179.0396 538.5494,-179.0396 538.0747,-175.5719 535.4285,-179.4668 537.6,-172.1042 537.6,-172.1042\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"491.7797\" y=\"-210.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a & b & p</text>\n",
|
|
"<text text-anchor=\"start\" x=\"513.7797\" y=\"-195.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->2 -->\n",
|
|
"<g id=\"edge11\" class=\"edge\">\n",
|
|
"<title>3->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M919.8786,-185.5162C911.9305,-179.9846 902.0786,-174.2713 892.1696,-171.4402 878.4945,-167.533 873.8446,-167.533 860.1696,-171.4402 852.5829,-173.6078 845.0298,-177.4648 838.339,-181.6363\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"832.4605,-185.5162 836.5675,-179.0312 835.3816,-183.5882 838.3027,-181.6602 838.3027,-181.6602 838.3027,-181.6602 835.3816,-183.5882 840.0379,-184.2892 832.4605,-185.5162 832.4605,-185.5162\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"870.6696\" y=\"-189.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">!a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"860.1696\" y=\"-175.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"876.1696\" y=\"-175.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->3 -->\n",
|
|
"<g id=\"edge12\" class=\"edge\">\n",
|
|
"<title>3->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M926.6227,-216.1042C924.2789,-226.0652 927.7946,-235.4402 937.1696,-235.4402 944.2008,-235.4402 947.9362,-230.1667 948.3756,-223.3278\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"947.7164,-216.1042 951.4896,-222.789 948.0345,-219.5898 948.3527,-223.0753 948.3527,-223.0753 948.3527,-223.0753 948.0345,-219.5898 945.2157,-223.3616 947.7164,-216.1042 947.7164,-216.1042\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"933.6696\" y=\"-253.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"921.1696\" y=\"-239.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"937.1696\" y=\"-239.2402\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#ff4da0\">❶</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text/plain": [
|
|
"<spot.impl.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7f7400069c90> >"
|
|
]
|
|
},
|
|
"execution_count": 10,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"spot.remove_alternation(aut, True)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 11,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<!-- Generated by graphviz version 2.40.1 (20161225.0304)\n",
|
|
" -->\n",
|
|
"<!-- Title: G Pages: 1 -->\n",
|
|
"<svg width=\"349pt\" height=\"131pt\"\n",
|
|
" viewBox=\"0.00 0.00 348.75 130.74\" 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 126.7401)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" stroke=\"transparent\" points=\"-4,4 -4,-126.7401 344.7486,-126.7401 344.7486,4 -4,4\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"147.8743\" y=\"-108.5401\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">Fin(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"172.8743\" y=\"-108.5401\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"188.8743\" y=\"-108.5401\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)</text>\n",
|
|
"<text text-anchor=\"start\" x=\"137.8743\" y=\"-94.5401\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">[co-Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\">\n",
|
|
"<title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"70.4971\" cy=\"-26.8701\" rx=\"32.4942\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"53.4971\" y=\"-23.1701\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">GF(a)</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M1.2861,-26.8701C4.4837,-26.8701 16.9881,-26.8701 30.507,-26.8701\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"37.625,-26.8701 30.625,-30.0202 34.125,-26.8701 30.625,-26.8702 30.625,-26.8702 30.625,-26.8702 34.125,-26.8701 30.6249,-23.7202 37.625,-26.8701 37.625,-26.8701\"/>\n",
|
|
"</g>\n",
|
|
"<!-- -1 -->\n",
|
|
"<g id=\"node3\" class=\"node\">\n",
|
|
"<title>-1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"149.7942\" cy=\"-26.8701\" rx=\"1.8\" ry=\"1.8\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 0->-1 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\">\n",
|
|
"<title>0->-1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M103.2081,-26.8701C116.7748,-26.8701 131.4601,-26.8701 140.641,-26.8701\"/>\n",
|
|
"<polygon fill=\"none\" stroke=\"#000000\" points=\"140.7418,-29.3202 147.7418,-26.8701 140.7418,-24.4202 140.7418,-29.3202\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"120.9942\" y=\"-30.6701\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- -1->0 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\">\n",
|
|
"<title>-1->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M147.9427,-26.6201C144.4443,-26.1619 136.6194,-25.2038 129.9942,-24.8701 123.551,-24.5455 116.7125,-24.4981 110.0545,-24.612\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"102.9281,-24.7935 109.8456,-21.4662 106.427,-24.7043 109.9259,-24.6152 109.9259,-24.6152 109.9259,-24.6152 106.427,-24.7043 110.0061,-27.7642 102.9281,-24.7935 102.9281,-24.7935\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node4\" class=\"node\">\n",
|
|
"<title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"216.1714\" cy=\"-26.8701\" rx=\"27.6545\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"204.6714\" y=\"-30.6701\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">F(a)</text>\n",
|
|
"<text text-anchor=\"start\" x=\"208.1714\" y=\"-15.6701\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- -1->1 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\">\n",
|
|
"<title>-1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M151.7092,-26.8701C156.3364,-26.8701 168.6818,-26.8701 181.3457,-26.8701\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"188.3671,-26.8701 181.3671,-30.0202 184.8671,-26.8701 181.3671,-26.8702 181.3671,-26.8702 181.3671,-26.8702 184.8671,-26.8701 181.367,-23.7202 188.3671,-26.8701 188.3671,-26.8701\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge6\" class=\"edge\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M207.599,-52.6914C207.1147,-63.0476 209.9722,-71.7401 216.1714,-71.7401 220.8208,-71.7401 223.5905,-66.8506 224.4804,-60.0368\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"224.7438,-52.6914 227.6408,-59.7998 224.6183,-56.1891 224.4929,-59.6869 224.4929,-59.6869 224.4929,-59.6869 224.6183,-56.1891 221.3449,-59.574 224.7438,-52.6914 224.7438,-52.6914\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"211.6714\" y=\"-75.5401\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g id=\"node5\" class=\"node\">\n",
|
|
"<title>2</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"313.7486\" cy=\"-26.8701\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"313.7486\" y=\"-23.1701\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">t</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->2 -->\n",
|
|
"<g id=\"edge5\" class=\"edge\">\n",
|
|
"<title>1->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M243.8721,-26.8701C254.9771,-26.8701 267.8871,-26.8701 279.5668,-26.8701\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"286.6529,-26.8701 279.653,-30.0202 283.1529,-26.8701 279.6529,-26.8702 279.6529,-26.8702 279.6529,-26.8702 283.1529,-26.8701 279.6529,-23.7202 286.6529,-26.8701 286.6529,-26.8701\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"261.7486\" y=\"-30.6701\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->2 -->\n",
|
|
"<g id=\"edge7\" class=\"edge\">\n",
|
|
"<title>2->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M305.1792,-44.28C303.5796,-53.9579 306.4361,-62.8701 313.7486,-62.8701 319.1187,-62.8701 322.0856,-58.0637 322.6494,-51.6773\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"322.3179,-44.28 325.7782,-51.1319 322.4746,-47.7764 322.6313,-51.2729 322.6313,-51.2729 322.6313,-51.2729 322.4746,-47.7764 319.4845,-51.414 322.3179,-44.28 322.3179,-44.28\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"309.2486\" y=\"-66.6701\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text/plain": [
|
|
"<spot.impl.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7f740008b360> >"
|
|
]
|
|
},
|
|
"execution_count": 11,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"a = spot.automaton('''\n",
|
|
"HOA: v1\n",
|
|
"tool: \"ltl3dra\" \"0.2.2\"\n",
|
|
"name: \"VWAA for GFa\"\n",
|
|
"States: 3\n",
|
|
"Start: 0\n",
|
|
"acc-name: co-Buchi\n",
|
|
"Acceptance: 1 Fin(0)\n",
|
|
"AP: 1 \"a\"\n",
|
|
"properties: trans-labels explicit-labels state-acc univ-branch very-weak\n",
|
|
"--BODY--\n",
|
|
"State: 0 \"GF(a)\"\n",
|
|
" [t] 1&0\n",
|
|
"State: 1 \"F(a)\" {0}\n",
|
|
" [(0)] 2\n",
|
|
" [t] 1\n",
|
|
"State: 2 \"t\"\n",
|
|
" [t] 2\n",
|
|
"--END--\n",
|
|
"'''); a"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 12,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<!-- Generated by graphviz version 2.40.1 (20161225.0304)\n",
|
|
" -->\n",
|
|
"<!-- Title: G Pages: 1 -->\n",
|
|
"<svg width=\"206pt\" height=\"161pt\"\n",
|
|
" viewBox=\"0.00 0.00 206.00 161.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 157)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"#ffffff\" stroke=\"transparent\" points=\"-4,4 -4,-157 202,-157 202,4 -4,4\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"78\" y=\"-138.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">Inf(</text>\n",
|
|
"<text text-anchor=\"start\" x=\"100\" y=\"-138.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"<text text-anchor=\"start\" x=\"116\" y=\"-138.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">)</text>\n",
|
|
"<text text-anchor=\"start\" x=\"76\" y=\"-124.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">[Büchi]</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\">\n",
|
|
"<title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"65\" cy=\"-18\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"65\" y=\"-14.3\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">0</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\">\n",
|
|
"<title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M1.2244,-18C4.383,-18 17.3969,-18 30.8528,-18\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"37.8798,-18 30.8799,-21.1501 34.3798,-18 30.8798,-18.0001 30.8798,-18.0001 30.8798,-18.0001 34.3798,-18 30.8798,-14.8501 37.8798,-18 37.8798,-18\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node3\" class=\"node\">\n",
|
|
"<title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"#000000\" cx=\"171\" cy=\"-18\" rx=\"27\" ry=\"18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"161\" y=\"-14.3\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">0,1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\">\n",
|
|
"<title>0->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M92.0225,-18C105.4987,-18 121.9518,-18 136.3456,-18\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"143.6582,-18 136.6583,-21.1501 140.1582,-18 136.6582,-18.0001 136.6582,-18.0001 136.6582,-18.0001 140.1582,-18 136.6582,-14.8501 143.6582,-18 143.6582,-18\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"113.5\" y=\"-36.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1</text>\n",
|
|
"<text text-anchor=\"start\" x=\"110\" y=\"-21.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M166.3261,-35.7817C165.5319,-45.3149 167.0898,-54 171,-54 173.8715,-54 175.4745,-49.3161 175.8089,-43.0521\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"175.6739,-35.7817 178.9534,-42.722 175.7389,-39.2811 175.8039,-42.7805 175.8039,-42.7805 175.8039,-42.7805 175.7389,-39.2811 172.6545,-42.8391 175.6739,-35.7817 175.6739,-35.7817\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"171\" y=\"-57.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">1</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->1 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\">\n",
|
|
"<title>1->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"#000000\" d=\"M163.3215,-35.4203C158.9444,-52.791 161.5039,-72 171,-72 179.2349,-72 182.2534,-57.5545 180.0554,-42.3894\"/>\n",
|
|
"<polygon fill=\"#000000\" stroke=\"#000000\" points=\"178.6785,-35.4203 183.1256,-41.6769 179.3569,-38.8539 180.0354,-42.2875 180.0354,-42.2875 180.0354,-42.2875 179.3569,-38.8539 176.9451,-42.8981 178.6785,-35.4203 178.6785,-35.4203\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"167.5\" y=\"-90.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#000000\">a</text>\n",
|
|
"<text text-anchor=\"start\" x=\"163\" y=\"-75.8\" font-family=\"Lato\" font-size=\"14.00\" fill=\"#1f78b4\">⓿</text>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text/plain": [
|
|
"<spot.impl.twa_graph; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_graph > *' at 0x7f7400150090> >"
|
|
]
|
|
},
|
|
"execution_count": 12,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"spot.remove_alternation(a, True)"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.6.5"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|