Skip to content

Commit

Permalink
adding execution filter of the example
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmota committed Mar 20, 2019
1 parent fcd6a2f commit ca65c42
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/viz/execution-paths.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand All @@ -1421,17 +1421,17 @@
" <iframe\n",
" width=\"100%\"\n",
" height=\"400\"\n",
" src=\"temp/graph-6ee4db23-ac4a-424a-b4d7-7dac592dd5fc.html\"\n",
" src=\"temp/graph-566301cc-12b6-486f-a1b9-e5f5d7c87d15.html\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x7f0f8ffb4ba8>"
"<IPython.lib.display.IFrame at 0x7f21836d7128>"
]
},
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1459,7 +1459,7 @@
"for item in data[\"execution_stream\"]:\n",
" topic = item['topic']\n",
" exec_id = topic.split(\"/\")[0]\n",
" if target_execution_id = exec_id:\n",
" if target_execution_id == exec_id:\n",
" \n",
" \n",
" method = topic[topic.index(\"/\"):]\n",
Expand Down
58 changes: 58 additions & 0 deletions examples/viz/temp/graph-566301cc-12b6-486f-a1b9-e5f5d7c87d15.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<script type="text/javascript" src="../../../resources/scripts/graphdrawer/vis.js"></script>
<link href="../../../resources/scripts/graphdrawer/vis.css" rel="stylesheet" type="text/css">
</head>
<body>

<div id="566301cc-12b6-486f-a1b9-e5f5d7c87d15"></div>

<script type="text/javascript">
var nodes = [{"id": 0, "label": "/knot/Cycle_1.Begin/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/start"}, {"id": 1, "label": "/knot/Cycle_1.Begin/navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/navigate"}, {"id": 2, "label": "/knot/Cycle_1.Call_the_supervisor_C/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_C/end"}, {"id": 3, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 4, "label": "/knot/Cycle_1.Call_the_supervisor_C/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_C/start"}, {"id": 5, "label": "/knot/Cycle_1.Call_the_supervisor_C/navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_C/navigate"}, {"id": 6, "label": "/knot/Cycle_1.Call_the_supervisor_B/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_B/end"}, {"id": 7, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 8, "label": "/knot/Cycle_1.Call_the_supervisor_B/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_B/start"}, {"id": 9, "label": "/knot/Cycle_1.Call_the_supervisor_B/navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_B/navigate"}, {"id": 10, "label": "/knot/Cycle_1.Call_the_supervisor_A/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_A/end"}, {"id": 11, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 12, "label": "/knot/Cycle_1.Call_the_supervisor_A/navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_A/navigate"}, {"id": 13, "label": "/knot/Cycle_1.Begin/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/end"}, {"id": 14, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 15, "label": "/knot/Cycle_1.Call_the_supervisor_A/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Call_the_supervisor_A/start"}, {"id": 16, "label": "/knot/</navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/</navigate"}, {"id": 17, "label": "/knot/Cycle_1.Begin/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/start"}, {"id": 18, "label": "/knot/Cycle_1.More_information/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.More_information/end"}, {"id": 19, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 20, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 21, "label": "/knot/Cycle_1.Begin/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/end"}, {"id": 22, "label": "/knot/Cycle_1.More_information/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.More_information/start"}, {"id": 23, "label": "/knot/Cycle_1.More_information/navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.More_information/navigate"}, {"id": 24, "label": "/knot/Cycle_1.Begin/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/start"}, {"id": 25, "label": "/knot/Cycle_1.Begin/navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/navigate"}, {"id": 26, "label": "/knot/Start.Case_001/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Start.Case_001/end"}, {"id": 27, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 28, "label": "/knot/</navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/</navigate"}, {"id": 29, "label": "/knot/Start.Case_001/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Start.Case_001/start"}, {"id": 30, "label": "/knot/Cycle_1.Begin/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/end"}, {"id": 31, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 32, "label": "/knot/Cycle_1.Begin/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/start"}, {"id": 33, "label": "/knot/Cycle_1.Begin/navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Cycle_1.Begin/navigate"}, {"id": 34, "label": "/knot/Start.Case_001/end", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Start.Case_001/end"}, {"id": 35, "label": "/control/input/submit", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/control/input/submit"}, {"id": 36, "label": "/knot/<</navigate", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/<</navigate"}, {"id": 37, "label": "/knot/Start.Case_001/start", "title": "{\"case\": \"case001-development\", \"user\": \"[email protected]\"}", "group": "2019-03-19T00:34:50.726Z-3acd7e11-1a7f-6786-a602-01388934a377/knot/Start.Case_001/start"}];
var edges = [{"from": 0, "label": "THEN", "to": 1}, {"from": 1, "label": "THEN", "to": 2}, {"from": 2, "label": "THEN", "to": 3}, {"from": 3, "label": "THEN", "to": 4}, {"from": 4, "label": "THEN", "to": 5}, {"from": 5, "label": "THEN", "to": 6}, {"from": 6, "label": "THEN", "to": 7}, {"from": 7, "label": "THEN", "to": 8}, {"from": 8, "label": "THEN", "to": 9}, {"from": 9, "label": "THEN", "to": 10}, {"from": 10, "label": "THEN", "to": 11}, {"from": 11, "label": "THEN", "to": 12}, {"from": 12, "label": "THEN", "to": 13}, {"from": 13, "label": "THEN", "to": 14}, {"from": 14, "label": "THEN", "to": 15}, {"from": 15, "label": "THEN", "to": 16}, {"from": 16, "label": "THEN", "to": 17}, {"from": 17, "label": "THEN", "to": 18}, {"from": 18, "label": "THEN", "to": 19}, {"from": 19, "label": "THEN", "to": 20}, {"from": 20, "label": "THEN", "to": 21}, {"from": 21, "label": "THEN", "to": 22}, {"from": 22, "label": "THEN", "to": 23}, {"from": 23, "label": "THEN", "to": 24}, {"from": 24, "label": "THEN", "to": 25}, {"from": 25, "label": "THEN", "to": 26}, {"from": 26, "label": "THEN", "to": 27}, {"from": 27, "label": "THEN", "to": 28}, {"from": 28, "label": "THEN", "to": 29}, {"from": 29, "label": "THEN", "to": 30}, {"from": 30, "label": "THEN", "to": 31}, {"from": 31, "label": "THEN", "to": 32}, {"from": 32, "label": "THEN", "to": 33}, {"from": 33, "label": "THEN", "to": 34}, {"from": 34, "label": "THEN", "to": 35}, {"from": 35, "label": "THEN", "to": 36}, {"from": 36, "label": "THEN", "to": 37}, {"from": 37, "label": "THEN", "to": 38}];

var container = document.getElementById("566301cc-12b6-486f-a1b9-e5f5d7c87d15");

var data = {
nodes: nodes,
edges: edges
};

var options = {
nodes: {
shape: 'dot',
size: 25,
font: {
size: 14
}
},
edges: {
font: {
size: 14,
align: 'middle'
},
color: 'gray',
arrows: {
to: {enabled: true, scaleFactor: 0.5}
},
smooth: {enabled: false}
},
physics: {
enabled: true,
stabilization: false,
},
layout: {
randomSeed: 191006,
improvedLayout: false
}
};

var network = new vis.Network(container, data, options);

</script>
</body>
</html>

0 comments on commit ca65c42

Please sign in to comment.