|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "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": {}, |
13 | 6 | "source": [ |
14 | 7 | "%matplotlib widget\n", |
15 | 8 | "\n", |
16 | 9 | "import os\n", |
17 | 10 | "import re\n", |
18 | 11 | "from collections import defaultdict\n", |
19 | 12 | "\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 |
22 | 19 | }, |
23 | 20 | { |
24 | 21 | "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": {}, |
33 | 23 | "source": [ |
34 | | - "DIR = get_ogdf_include_path()\n", |
| 24 | + "DIR = get_base_include_path()\n", |
35 | 25 | "\n", |
36 | 26 | "HEADERS = [\n", |
37 | 27 | " os.path.relpath(os.path.join(root, file), DIR)\n", |
|
77 | 67 | " UNKNOWN[match.group(1) + include + match.group(3)].append(header)\n", |
78 | 68 | "\n", |
79 | 69 | "print(G.numberOfNodes(), G.numberOfEdges(), CG.numberOfClusters(), CG.treeDepth())" |
80 | | - ] |
| 70 | + ], |
| 71 | + "outputs": [], |
| 72 | + "execution_count": null |
81 | 73 | }, |
82 | 74 | { |
83 | 75 | "cell_type": "code", |
84 | | - "execution_count": null, |
85 | 76 | "metadata": { |
86 | 77 | "pycharm": { |
87 | 78 | "name": "#%%\n" |
88 | 79 | } |
89 | 80 | }, |
90 | | - "outputs": [], |
91 | 81 | "source": [ |
92 | 82 | "cppinclude(\"ogdf/layered/SugiyamaLayout.h\")\n", |
93 | 83 | "cppinclude(\"ogdf/layered/MedianHeuristic.h\")\n", |
|
116 | 106 | "ogdf.GraphIO.drawSVG(CGA, \"ogdf-includes.svg\")\n", |
117 | 107 | "ogdf.GraphIO.write(CGA, \"ogdf-includes.gml\")\n", |
118 | 108 | "CGA" |
119 | | - ] |
| 109 | + ], |
| 110 | + "outputs": [], |
| 111 | + "execution_count": null |
120 | 112 | } |
121 | 113 | ], |
122 | 114 | "metadata": { |
|
0 commit comments