ogdf-py 0.2.0__cp314-cp314-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ogdf/__init__.py ADDED
@@ -0,0 +1,34 @@
1
+ """
2
+ ogdf - Python bindings for the Open Graph Drawing Framework (OGDF).
3
+
4
+ A curated subset covering graph construction, layout algorithms, core graph
5
+ algorithms, and file I/O. Everything is re-exported from the compiled `_core`
6
+ module (see `_core.pyi` for the typed API).
7
+
8
+ Example:
9
+ >>> import ogdf
10
+ >>> g = ogdf.Graph()
11
+ >>> ogdf.random_planar_connected_graph(g, 20, 30)
12
+ >>> ga = ogdf.GraphAttributes(g)
13
+ >>> ogdf.FMMMLayout().call(ga)
14
+ >>> ogdf.draw_svg(ga, "graph.svg")
15
+ True
16
+ """
17
+
18
+
19
+ # start delvewheel patch
20
+ def _delvewheel_patch_1_13_0():
21
+ import os
22
+ if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'ogdf_py.libs'))):
23
+ os.add_dll_directory(libs_dir)
24
+
25
+
26
+ _delvewheel_patch_1_13_0()
27
+ del _delvewheel_patch_1_13_0
28
+ # end delvewheel patch
29
+
30
+ from ogdf import _core
31
+ from ogdf._core import * # noqa: F403
32
+
33
+ __all__ = [name for name in dir(_core) if not name.startswith("_")]
34
+ __version__ = "0.2.0"
Binary file