Skip to content

Commit 21b3ba0

Browse files
committed
fix ogdf-includes example
1 parent 4609b51 commit 21b3ba0

1 file changed

Lines changed: 15 additions & 23 deletions

File tree

docs/examples/ogdf-includes.ipynb

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,26 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": null,
6-
"metadata": {
7-
"ExecuteTime": {
8-
"end_time": "2023-09-21T08:36:00.074116426Z",
9-
"start_time": "2023-09-21T08:36:00.032105573Z"
10-
}
11-
},
12-
"outputs": [],
5+
"metadata": {},
136
"source": [
147
"%matplotlib widget\n",
158
"\n",
169
"import os\n",
1710
"import re\n",
1811
"from collections import defaultdict\n",
1912
"\n",
20-
"from ogdf_python import *"
21-
]
13+
"from ogdf_python import *\n",
14+
"\n",
15+
"ogdf.LayoutStandards.setDefaultEdgeArrow(ogdf.EdgeArrow.Last)"
16+
],
17+
"outputs": [],
18+
"execution_count": null
2219
},
2320
{
2421
"cell_type": "code",
25-
"execution_count": null,
26-
"metadata": {
27-
"ExecuteTime": {
28-
"end_time": "2023-09-20T21:37:12.874505060Z",
29-
"start_time": "2023-09-20T21:37:11.330315417Z"
30-
}
31-
},
32-
"outputs": [],
22+
"metadata": {},
3323
"source": [
34-
"DIR = get_ogdf_include_path()\n",
24+
"DIR = get_base_include_path()\n",
3525
"\n",
3626
"HEADERS = [\n",
3727
" os.path.relpath(os.path.join(root, file), DIR)\n",
@@ -77,17 +67,17 @@
7767
" UNKNOWN[match.group(1) + include + match.group(3)].append(header)\n",
7868
"\n",
7969
"print(G.numberOfNodes(), G.numberOfEdges(), CG.numberOfClusters(), CG.treeDepth())"
80-
]
70+
],
71+
"outputs": [],
72+
"execution_count": null
8173
},
8274
{
8375
"cell_type": "code",
84-
"execution_count": null,
8576
"metadata": {
8677
"pycharm": {
8778
"name": "#%%\n"
8879
}
8980
},
90-
"outputs": [],
9181
"source": [
9282
"cppinclude(\"ogdf/layered/SugiyamaLayout.h\")\n",
9383
"cppinclude(\"ogdf/layered/MedianHeuristic.h\")\n",
@@ -116,7 +106,9 @@
116106
"ogdf.GraphIO.drawSVG(CGA, \"ogdf-includes.svg\")\n",
117107
"ogdf.GraphIO.write(CGA, \"ogdf-includes.gml\")\n",
118108
"CGA"
119-
]
109+
],
110+
"outputs": [],
111+
"execution_count": null
120112
}
121113
],
122114
"metadata": {

0 commit comments

Comments
 (0)