ogdf-py 0.3.0__tar.gz → 0.6.0__tar.gz
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_py-0.3.0 → ogdf_py-0.6.0}/.github/workflows/build-publish.yml +71 -28
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/.github/workflows/ci.yml +50 -8
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/.gitignore +1 -1
- ogdf_py-0.6.0/CHANGELOG.md +248 -0
- ogdf_py-0.6.0/CMakeLists.txt +192 -0
- ogdf_py-0.6.0/LICENSE +30 -0
- ogdf_py-0.6.0/LICENSE_GPL_v2.txt +339 -0
- ogdf_py-0.6.0/LICENSE_GPL_v3.txt +674 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/Makefile +3 -3
- ogdf_py-0.3.0/README.md → ogdf_py-0.6.0/PKG-INFO +37 -1
- ogdf_py-0.3.0/PKG-INFO → ogdf_py-0.6.0/README.md +15 -20
- ogdf_py-0.6.0/TODO.md +78 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/README.md +11 -7
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/algorithms_visual.py +283 -2
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/layouts_gallery.py +5 -0
- ogdf_py-0.6.0/docs/choosing-a-layout.md +104 -0
- ogdf_py-0.6.0/docs/coverage.md +410 -0
- ogdf_py-0.6.0/docs/getting-started.md +523 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/docs/index.md +22 -3
- ogdf_py-0.6.0/docs/metrics.md +178 -0
- ogdf_py-0.6.0/docs/recipes.md +180 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/mkdocs.yml +3 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/pyproject.toml +11 -2
- ogdf_py-0.6.0/scripts/bootstrap_ogdf.py +282 -0
- ogdf_py-0.6.0/scripts/ogdf-tag.txt +1 -0
- ogdf_py-0.6.0/scripts/release_notes.py +110 -0
- ogdf_py-0.6.0/src/ogdf/__init__.py +121 -0
- ogdf_py-0.6.0/src/ogdf/__main__.py +8 -0
- ogdf_py-0.6.0/src/ogdf/_about.py +110 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/src/ogdf/_core.cpp +7 -2
- ogdf_py-0.6.0/src/ogdf/_interop.py +378 -0
- ogdf_py-0.6.0/src/ogdf/_layout.py +204 -0
- ogdf_py-0.6.0/src/ogdf/_metrics.py +154 -0
- ogdf_py-0.6.0/src/ogdf/_random.py +126 -0
- ogdf_py-0.6.0/src/ogdf/_results.py +284 -0
- ogdf_py-0.6.0/src/ogdf/_transforms.py +192 -0
- ogdf_py-0.6.0/src/ogdf/_validate.py +154 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/src/ogdf/bind_algorithms.cpp +435 -66
- ogdf_py-0.6.0/src/ogdf/bind_errors.cpp +38 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/src/ogdf/bind_generators.cpp +150 -21
- ogdf_py-0.6.0/src/ogdf/bind_graph.cpp +512 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/src/ogdf/bind_io.cpp +18 -2
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/src/ogdf/bind_layouts.cpp +160 -52
- ogdf_py-0.6.0/src/ogdf/bind_meta.cpp +102 -0
- ogdf_py-0.6.0/src/ogdf/bind_metrics.cpp +344 -0
- ogdf_py-0.6.0/src/ogdf/bind_transforms.cpp +265 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/src/ogdf/bindings.h +4 -0
- ogdf_py-0.6.0/src/ogdf/errors.h +376 -0
- ogdf_py-0.6.0/tests/conftest.py +20 -0
- ogdf_py-0.6.0/tests/test_about.py +53 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/tests/test_algorithms.py +7 -7
- ogdf_py-0.6.0/tests/test_docs.py +168 -0
- ogdf_py-0.6.0/tests/test_errors.py +238 -0
- ogdf_py-0.6.0/tests/test_interop.py +206 -0
- ogdf_py-0.6.0/tests/test_layout_facade.py +191 -0
- ogdf_py-0.6.0/tests/test_metrics.py +302 -0
- ogdf_py-0.6.0/tests/test_recipes.py +149 -0
- ogdf_py-0.6.0/tests/test_release_notes.py +95 -0
- ogdf_py-0.6.0/tests/test_reproducibility.py +70 -0
- ogdf_py-0.6.0/tests/test_results.py +236 -0
- ogdf_py-0.6.0/tests/test_safety.py +542 -0
- ogdf_py-0.6.0/tests/test_transforms.py +314 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/uv.lock +32 -3
- ogdf_py-0.3.0/CHANGELOG.md +0 -95
- ogdf_py-0.3.0/CMakeLists.txt +0 -98
- ogdf_py-0.3.0/LICENSE +0 -22
- ogdf_py-0.3.0/docs/coverage.md +0 -281
- ogdf_py-0.3.0/docs/getting-started.md +0 -111
- ogdf_py-0.3.0/scripts/bootstrap_ogdf.py +0 -126
- ogdf_py-0.3.0/src/ogdf/__init__.py +0 -22
- ogdf_py-0.3.0/src/ogdf/bind_graph.cpp +0 -279
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/_common.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/gallery.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/generators_zoo.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/io_roundtrip.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/run_all.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/demos/styling_showcase.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/src/ogdf/py.typed +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/tests/test_generators.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/tests/test_layouts.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/tests/test_ogdf.py +0 -0
- {ogdf_py-0.3.0 → ogdf_py-0.6.0}/tests/test_styling.py +0 -0
|
@@ -2,14 +2,22 @@ name: Build and Publish
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
+
# Release tags are bare versions (0.5.1), as created by `make release`.
|
|
5
6
|
tags:
|
|
6
|
-
- "
|
|
7
|
+
- "[0-9]*"
|
|
7
8
|
pull_request:
|
|
8
9
|
branches: [main, master]
|
|
10
|
+
# Tag pushes create a GitHub release only. Package indexes are opt-in, per
|
|
11
|
+
# manual run.
|
|
9
12
|
workflow_dispatch:
|
|
10
13
|
inputs:
|
|
11
|
-
|
|
12
|
-
description: "Publish to
|
|
14
|
+
testpypi:
|
|
15
|
+
description: "Publish to TestPyPI"
|
|
16
|
+
required: false
|
|
17
|
+
default: false
|
|
18
|
+
type: boolean
|
|
19
|
+
pypi:
|
|
20
|
+
description: "Publish to PyPI (after TestPyPI, if both are selected)"
|
|
13
21
|
required: false
|
|
14
22
|
default: false
|
|
15
23
|
type: boolean
|
|
@@ -36,8 +44,14 @@ env:
|
|
|
36
44
|
# the MSVC toolchain.
|
|
37
45
|
CIBW_BEFORE_ALL_WINDOWS: python scripts/bootstrap_ogdf.py
|
|
38
46
|
# Exercise each wheel end-to-end (import + layouts + I/O).
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
# networkx is an optional runtime dependency; install it so the wheel test
|
|
48
|
+
# actually exercises the interop layer instead of skipping it.
|
|
49
|
+
CIBW_TEST_REQUIRES: pytest networkx
|
|
50
|
+
# Import, the installation report, and the full suite (layouts, algorithms,
|
|
51
|
+
# I/O, interop, recipes) against the built wheel rather than the source tree.
|
|
52
|
+
CIBW_TEST_COMMAND: >-
|
|
53
|
+
python -c "import ogdf; print(ogdf.about_text())" &&
|
|
54
|
+
pytest {project}/tests -v
|
|
41
55
|
|
|
42
56
|
jobs:
|
|
43
57
|
build-sdist:
|
|
@@ -46,6 +60,16 @@ jobs:
|
|
|
46
60
|
steps:
|
|
47
61
|
- uses: actions/checkout@v7
|
|
48
62
|
|
|
63
|
+
# Fail before the wheel builds if the tag and pyproject.toml disagree;
|
|
64
|
+
# otherwise the release would carry wheels of a different version.
|
|
65
|
+
- name: Check tag matches version
|
|
66
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
67
|
+
run: |
|
|
68
|
+
tag="$GITHUB_REF_NAME"
|
|
69
|
+
version=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml | head -1)
|
|
70
|
+
echo "tag=${tag} pyproject=${version}"
|
|
71
|
+
test "$tag" = "$version"
|
|
72
|
+
|
|
49
73
|
- name: Install uv
|
|
50
74
|
uses: astral-sh/setup-uv@v8.3.0
|
|
51
75
|
|
|
@@ -90,7 +114,7 @@ jobs:
|
|
|
90
114
|
uses: actions/cache@v6
|
|
91
115
|
with:
|
|
92
116
|
path: thirdparty/ogdf
|
|
93
|
-
key: ogdf-${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('scripts/bootstrap_ogdf.py') }}
|
|
117
|
+
key: ogdf-${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('scripts/bootstrap_ogdf.py', 'scripts/ogdf-tag.txt') }}
|
|
94
118
|
|
|
95
119
|
- name: Build wheels
|
|
96
120
|
uses: pypa/cibuildwheel@v4.1.0
|
|
@@ -131,11 +155,45 @@ jobs:
|
|
|
131
155
|
path: dist/
|
|
132
156
|
retention-days: 30
|
|
133
157
|
|
|
158
|
+
github-release:
|
|
159
|
+
name: Create GitHub release
|
|
160
|
+
needs: collect-artifacts
|
|
161
|
+
runs-on: ubuntu-latest
|
|
162
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
163
|
+
permissions:
|
|
164
|
+
contents: write
|
|
165
|
+
steps:
|
|
166
|
+
- uses: actions/checkout@v7
|
|
167
|
+
|
|
168
|
+
- name: Download all artifacts
|
|
169
|
+
uses: actions/download-artifact@v8
|
|
170
|
+
with:
|
|
171
|
+
name: all-dist
|
|
172
|
+
path: dist/
|
|
173
|
+
|
|
174
|
+
# Notes are the CHANGELOG section for this version.
|
|
175
|
+
- name: Extract release notes
|
|
176
|
+
run: |
|
|
177
|
+
python3 scripts/release_notes.py "$GITHUB_REF_NAME" --output notes.md
|
|
178
|
+
cat notes.md
|
|
179
|
+
|
|
180
|
+
# Idempotent: a rerun replaces the assets of an existing release.
|
|
181
|
+
- name: Create or update release
|
|
182
|
+
env:
|
|
183
|
+
GH_TOKEN: ${{ github.token }}
|
|
184
|
+
run: |
|
|
185
|
+
tag="$GITHUB_REF_NAME"
|
|
186
|
+
if gh release view "$tag" >/dev/null 2>&1; then
|
|
187
|
+
gh release upload "$tag" dist/* --clobber
|
|
188
|
+
else
|
|
189
|
+
gh release create "$tag" dist/* --title "ogdf-py ${tag}" --notes-file notes.md --verify-tag
|
|
190
|
+
fi
|
|
191
|
+
|
|
134
192
|
publish-testpypi:
|
|
135
193
|
name: Publish to TestPyPI
|
|
136
194
|
needs: collect-artifacts
|
|
137
195
|
runs-on: ubuntu-latest
|
|
138
|
-
if: github.event_name == '
|
|
196
|
+
if: github.event_name == 'workflow_dispatch' && inputs.testpypi
|
|
139
197
|
environment:
|
|
140
198
|
name: testpypi
|
|
141
199
|
url: https://test.pypi.org/p/ogdf-py
|
|
@@ -158,27 +216,12 @@ jobs:
|
|
|
158
216
|
name: Publish to PyPI
|
|
159
217
|
needs: [collect-artifacts, publish-testpypi]
|
|
160
218
|
runs-on: ubuntu-latest
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
steps:
|
|
168
|
-
- name: Download all artifacts
|
|
169
|
-
uses: actions/download-artifact@v8
|
|
170
|
-
with:
|
|
171
|
-
name: all-dist
|
|
172
|
-
path: dist/
|
|
173
|
-
|
|
174
|
-
- name: Publish to PyPI
|
|
175
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
176
|
-
|
|
177
|
-
publish-manual:
|
|
178
|
-
name: Manual publish to PyPI
|
|
179
|
-
needs: collect-artifacts
|
|
180
|
-
runs-on: ubuntu-latest
|
|
181
|
-
if: github.event_name == 'workflow_dispatch' && inputs.publish
|
|
219
|
+
# always() lets this run when publish-testpypi was skipped (not selected);
|
|
220
|
+
# a failed TestPyPI upload still blocks it.
|
|
221
|
+
if: >-
|
|
222
|
+
always() && github.event_name == 'workflow_dispatch' && inputs.pypi &&
|
|
223
|
+
needs.collect-artifacts.result == 'success' &&
|
|
224
|
+
contains(fromJSON('["success", "skipped"]'), needs.publish-testpypi.result)
|
|
182
225
|
environment:
|
|
183
226
|
name: pypi
|
|
184
227
|
url: https://pypi.org/p/ogdf-py
|
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
27
27
|
uses: actions/cache@v6
|
|
28
28
|
with:
|
|
29
29
|
path: thirdparty/ogdf
|
|
30
|
-
key: ogdf-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/bootstrap_ogdf.py') }}
|
|
30
|
+
key: ogdf-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/bootstrap_ogdf.py', 'scripts/ogdf-tag.txt') }}
|
|
31
31
|
|
|
32
32
|
- name: Bootstrap OGDF
|
|
33
33
|
run: python3 scripts/bootstrap_ogdf.py
|
|
@@ -55,12 +55,51 @@ jobs:
|
|
|
55
55
|
- name: Run tests
|
|
56
56
|
run: uv run pytest tests/ -v --cov=src/ogdf --cov-report=xml
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
offline-build:
|
|
59
|
+
name: Offline source build
|
|
60
|
+
runs-on: ubuntu-latest
|
|
61
|
+
steps:
|
|
62
|
+
- uses: actions/checkout@v7
|
|
63
|
+
|
|
64
|
+
# Without a vendored source, an offline bootstrap must fail fast and say
|
|
65
|
+
# how to supply one - rather than silently reaching for the network.
|
|
66
|
+
# The bootstrap is stdlib-only and must run on the system interpreter:
|
|
67
|
+
# `uv run` would build the project first, and CMakeLists bootstraps OGDF
|
|
68
|
+
# when it is missing, so the source would already be present here.
|
|
69
|
+
- name: Offline bootstrap refuses to clone
|
|
70
|
+
run: |
|
|
71
|
+
set +e
|
|
72
|
+
output=$(python3 scripts/bootstrap_ogdf.py --offline 2>&1)
|
|
73
|
+
status=$?
|
|
74
|
+
echo "$output"
|
|
75
|
+
test $status -ne 0 || { echo 'expected a non-zero exit'; exit 1; }
|
|
76
|
+
echo "$output" | grep -q 'network access is disabled'
|
|
77
|
+
|
|
78
|
+
# Vendor the source once, then build from it with the network path unused.
|
|
79
|
+
- name: Vendor the OGDF source
|
|
80
|
+
run: python3 scripts/bootstrap_ogdf.py --clone-only
|
|
81
|
+
|
|
82
|
+
- name: Install uv
|
|
83
|
+
uses: astral-sh/setup-uv@v8.3.0
|
|
60
84
|
with:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
85
|
+
enable-cache: true
|
|
86
|
+
|
|
87
|
+
- name: Set up Python
|
|
88
|
+
run: uv python install 3.13
|
|
89
|
+
|
|
90
|
+
- name: Build from the vendored source with OGDF_OFFLINE set
|
|
91
|
+
env:
|
|
92
|
+
OGDF_OFFLINE: '1'
|
|
93
|
+
run: |
|
|
94
|
+
python3 scripts/bootstrap_ogdf.py
|
|
95
|
+
uv sync --dev
|
|
96
|
+
|
|
97
|
+
- name: Smoke-test the offline build
|
|
98
|
+
env:
|
|
99
|
+
OGDF_OFFLINE: '1'
|
|
100
|
+
run: |
|
|
101
|
+
uv run python -m ogdf
|
|
102
|
+
uv run pytest tests/ -q
|
|
64
103
|
|
|
65
104
|
windows:
|
|
66
105
|
name: Build & test (Windows)
|
|
@@ -74,7 +113,7 @@ jobs:
|
|
|
74
113
|
uses: actions/cache@v6
|
|
75
114
|
with:
|
|
76
115
|
path: thirdparty/ogdf
|
|
77
|
-
key: ogdf-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/bootstrap_ogdf.py') }}
|
|
116
|
+
key: ogdf-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/bootstrap_ogdf.py', 'scripts/ogdf-tag.txt') }}
|
|
78
117
|
|
|
79
118
|
- name: Bootstrap OGDF
|
|
80
119
|
run: python scripts/bootstrap_ogdf.py
|
|
@@ -88,7 +127,10 @@ jobs:
|
|
|
88
127
|
run: uv python install 3.13
|
|
89
128
|
|
|
90
129
|
- name: Install dependencies (builds the extension)
|
|
91
|
-
run: uv sync
|
|
130
|
+
run: uv sync --dev
|
|
92
131
|
|
|
93
132
|
- name: Run tests
|
|
94
133
|
run: uv run pytest tests/ -v
|
|
134
|
+
|
|
135
|
+
- name: Installation report
|
|
136
|
+
run: uv run python -m ogdf
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.6.0]
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Pushing a release tag now creates the GitHub release, with all wheels, the sdist, and the matching CHANGELOG section as notes. Tag pushes no longer publish to TestPyPI or PyPI; a manual run of `build-publish.yml` does, with the `testpypi` and `pypi` inputs (both off by default). The README now gives `pip install ogdf-py`.
|
|
14
|
+
|
|
15
|
+
- The project is now licensed under the GPL, version 2 or 3, with the same linking exception for COIN-OR and Tulip that OGDF grants; it was MIT. Every wheel statically links OGDF, which is GPL v2/v3, so the wheels were never distributable as MIT-only. `pyproject.toml` declares `GPL-2.0-only OR GPL-3.0-only`. Released versions keep their MIT licence.
|
|
16
|
+
|
|
17
|
+
- Wheels ship OGDF's licence texts (`LICENSE.txt`, GPL v2 and v3, Minisat) under `ogdf/_licenses/ogdf/`. The extension links OGDF statically, so the texts must travel with the binary.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- `to_networkx` returns an undirected graph unless `directed=True` is passed. It used to read `GraphAttributes.directed`, which OGDF sets to `True` by default, so `to_networkx(g, ogdf.layout(g))` returned a `DiGraph` for an undirected graph. Changing OGDF's default instead would remove arrowheads from every default SVG and TikZ drawing.
|
|
22
|
+
|
|
23
|
+
- `min_spanning_tree` uses Kruskal and returns a minimum spanning forest. OGDF's Prim started from the first node, so on a disconnected graph it covered one component; the docstring already promised a forest.
|
|
24
|
+
|
|
25
|
+
- `set_seed` accepts `[-2**31, 2**32)`, and `new_seed()` returns values in `[0, 2**32)` on every platform. `set_seed` accepted int32 only, so about half of drawn seeds raised `TypeError`. OGDF's `randomSeed()` computes in `uint_fast32_t`, which is 64 bits under libstdc++, so on Linux `new_seed()` also returned values up to about `7 * 2**32`. Values outside the range raise `PreconditionError` (a `ValueError`).
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- Inputs that broke an OGDF precondition now raise `PreconditionError` or `InvalidGraphError` instead of segfaulting, hanging, or returning a wrong result. OGDF checks its preconditions only in debug builds. Findings C1-C14 and P1 in `REVIEW.md` list each case; `tests/test_safety.py` covers them. The main classes:
|
|
30
|
+
- `GraphAttributes` accessors, layouts, metrics, transforms and SVG/TikZ output check the attribute flags they read. A default `GraphAttributes` segfaulted on `set_node_label`.
|
|
31
|
+
- A handle whose element was deleted, or whose graph was cleared or destroyed, is rejected with a `TypeError` (and a nanobind `RuntimeWarning`) instead of reading freed memory. If OGDF later reuses the address for a new element of the same kind, the old handle names that element. A side table keyed by address made array access and generators 3x slower, because each lookup missed the cache; marking the Python object invalid costs nothing per access.
|
|
32
|
+
- Arrays, `GraphAttributes`, and node/edge arguments from a different graph are rejected. `connected_components` with another graph's array returned 16 for a 200000-node graph and wrote out of bounds.
|
|
33
|
+
- `FPPLayout`, `MixedModelLayout`, `SchnyderLayout`, `DominanceLayout` and `VisibilityLayout` require a connected graph, and `validate()` reports it. `validate()` returned `[]` for inputs that then segfaulted.
|
|
34
|
+
- Generators validate sizes, degrees, probabilities and parity, and reject aliased graph arguments. Impossible `random_regular_graph` and `random_watts_strogatz_graph` arguments looped forever; `cube_graph(g, 40)` overflowed to 256 nodes.
|
|
35
|
+
- `planar_embed_planar_graph` rejects non-planar input; on K5 it added two nodes and marked the result embedded.
|
|
36
|
+
- `min_cost_flow` checks connectivity, bounds and supply balance, and verifies OGDF's result. OGDF's Reinelt solver reports success with zero flow on a one-edge network; that now raises `AlgorithmError`.
|
|
37
|
+
- `bellman_ford` no longer relaxes edges out of unreachable nodes. OGDF added edge lengths to its `INT_MAX` sentinel, which overflowed and gave every node downstream of an unreachable one a wrong distance. Lengths whose absolute sum reaches `2**31 - 1` are rejected.
|
|
38
|
+
- NaN weights and capacities are rejected wherever negative ones were. `PivotMDS.set_edge_costs(0)` (an endless loop) and `SugiyamaLayout.set_runs(0)` are rejected.
|
|
39
|
+
|
|
40
|
+
- `make clean` deleted every `.so` under the repository, including the 241 in `.venv`. It now cleans `src/` only.
|
|
41
|
+
|
|
42
|
+
- The tag trigger matched only `v*`, but every release tag so far is bare (`0.5.1`). Tag pushes never ran the publish jobs, so each release went out by manual dispatch. The trigger now matches bare tags, and `make release` creates them instead of `v`-prefixed ones. A tag that disagrees with `pyproject.toml` fails the sdist job before any wheel builds.
|
|
43
|
+
|
|
44
|
+
- The two `0.5.0` strings in `docs/getting-started.md` are now `0.5.1`, and `make release` rewrites them along with `pyproject.toml`. `test_provenance_example_keys_match` compares the documented `package_version` against the installed one, so a version bump that touches only `pyproject.toml` fails every wheel job at the cibuildwheel test step - after the wheels have already been built.
|
|
45
|
+
|
|
46
|
+
## [0.5.1]
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- The `drawing_metrics` example in `docs/metrics.md` now shows values measured from the snippet as written, and says they are machine-specific. The generators draw through `std::uniform_int_distribution`, whose algorithm the C++ standard leaves to the implementation, so the same seed builds a different graph under libc++ than under libstdc++ - the drawing is not the only thing that moves between platforms. `test_drawing_metrics_example_matches_reality` accordingly checks the key set, the graph size, and the arithmetic between the documented numbers rather than asserting values no other platform can reproduce.
|
|
51
|
+
|
|
52
|
+
- Tests now seed OGDF's engine before each one (`tests/conftest.py`). The engine is process-wide, so a test that generated a random graph without seeding got whatever position the engine was left in by the tests before it - passing under `pytest tests/` and drawing a different graph under `pytest tests/test_x.py` or `--lf`.
|
|
53
|
+
|
|
54
|
+
## [0.5.0]
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
**Results**
|
|
59
|
+
|
|
60
|
+
- Result objects, alongside the existing array-output functions rather than replacing them. `shortest_paths(graph, source, weight=None, *, directed=False, algorithm="auto")` returns a `ShortestPaths` with `distance()`, `path_to()`, `nodes_to()`, `predecessor_edge()`, `reachable()`, `unreachable_nodes()`, and `distances()`. `dijkstra` and `bellman_ford` were already building the shortest-path tree internally and discarding it; this keeps it. Unreachable nodes report `math.inf` and `None` instead of OGDF's raw sentinel, and `algorithm="auto"` picks Bellman-Ford when an `EdgeArrayInt` holds a negative length, Dijkstra otherwise. A reachable negative cycle raises `AlgorithmError` rather than returning meaningless distances.
|
|
61
|
+
|
|
62
|
+
- `min_st_cut` now returns an `STCut` named tuple, so the value and edges are reachable by name (`cut.value`, `cut.edges`) as well as by unpacking. The return shape is unchanged, so existing `value, edges = min_st_cut(...)` code keeps working.
|
|
63
|
+
|
|
64
|
+
- Low-level primitives behind the above: `dijkstra_tree`, `bellman_ford_tree`, and `st_cut`.
|
|
65
|
+
|
|
66
|
+
**Placing a drawing**
|
|
67
|
+
|
|
68
|
+
- Coordinate transforms for placing a finished drawing: `translate`, `center`, `normalize` (lower-left corner to the origin), `scale` (about the centre, the origin, the lower-left corner, or an explicit point), `fit_to_box`, and `pack_components`. Every one moves edge bend points as well as node coordinates, so a drawing produced by a routing layout is not torn apart - which is also why they are implemented natively, since bends are otherwise only reachable through `add_bend` / `clear_bends`.
|
|
69
|
+
|
|
70
|
+
- `scale` leaves node sizes alone by default, since scaling up is usually how overlapping nodes get separated; `scale_node_sizes=True` scales the whole picture. `fit_to_box` preserves aspect ratio, returns the factor it applied, and scales node sizes by default so the fit is exact; with `scale_node_sizes=False` the factor is solved for by bisection rather than estimated, so the fit stays exact while node boxes keep their size.
|
|
71
|
+
|
|
72
|
+
- `pack_components` arranges disconnected components side by side instead of piled at a common origin, binding OGDF's `TileToRowsCCPacker`. Returns the component count and leaves a connected graph untouched.
|
|
73
|
+
|
|
74
|
+
**Measuring a drawing**
|
|
75
|
+
|
|
76
|
+
- Drawing-quality metrics, so layouts can be compared on numbers instead of by eye: `count_crossings`, `edge_lengths`, `bounding_box`, `node_overlaps`, `min_angle` (angular resolution), and `stress`. All are computed over the drawn polylines, so edge bends are respected rather than treated as straight lines.
|
|
77
|
+
|
|
78
|
+
- `drawing_metrics(attributes)` aggregates them into one plain dict - crossings, the edge-length distribution and its scale-free coefficient of variation, width/height/area/aspect ratio, node overlap, angular resolution, and stress - ready to serialize alongside `provenance()`.
|
|
79
|
+
|
|
80
|
+
- `compare_layouts(graph, layouts, *, seed=None)` runs several layouts on one graph, each with a fresh `GraphAttributes`, and returns their metrics ranked by crossings then stress. A layout whose preconditions the graph fails is reported with an `error` key and sorted last instead of aborting the comparison; `seed` makes randomized layouts comparable like for like.
|
|
81
|
+
|
|
82
|
+
**Workflow**
|
|
83
|
+
|
|
84
|
+
- `layout(graph, algorithm=FMMMLayout, **options)` - one call from a graph to a placed drawing, composing precondition checks, seeding, the layout itself, optional component packing, and fit-to-box. The algorithm is a class by default, so it stays completable in an editor and checkable by mypy; a string is accepted for config-driven use, with `layout_names()` listing what resolves. Options are forwarded to the layout's setters through a mechanical `set_X` mapping derived from the bindings, so it cannot drift, and an unknown option raises `TypeError` naming what that layout does accept. Returns the `GraphAttributes`; metrics and provenance are deliberately left as separate calls, since the metrics are quadratic.
|
|
85
|
+
|
|
86
|
+
**Documentation and tests**
|
|
87
|
+
|
|
88
|
+
- Documentation: a Drawing Metrics page explaining what each metric means and how to read it, and the layout selection guide's comparison example now uses `compare_layouts` instead of a hand-rolled loop.
|
|
89
|
+
|
|
90
|
+
- Documented how the metrics read on real drawings: self-loops contribute length 0 (a straight-line drawing gives them no extent), `min_angle` is a worst case that a single pair of collinear edges sends to 0, and `stress` is a sum over node pairs so it grows with the graph and should only be compared between layouts of the same graph.
|
|
91
|
+
|
|
92
|
+
- `tests/test_docs.py` verifies the concrete output values printed in the documentation - the capability counts in the sample installation report, the `drawing_metrics` example, the recipe's build order, and the small inline `# result` comments - by re-deriving each and comparing.
|
|
93
|
+
|
|
94
|
+
- Documentation: a `layout()` section in the getting-started guide, a Placing the drawing section on the metrics page covering the transforms, and a `coverage.md` reorganised so the Python layer lists results, placement, measurement, and workflow as their own groups rather than filing completed work under "not yet provided".
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
|
|
98
|
+
- `min_st_cut` deliberately does **not** report the node partition, and the documentation says why. OGDF's `MinSTCutMaxFlow` exposes `isInFrontCut` / `isInBackCut`, which look like the two sides of the cut but are the extreme minimum cuts nearest the source and nearest the sink. When the minimum cut is not unique those are different cuts, and neither is guaranteed to correspond to the edge list returned alongside them - on the complete digraph on 20 nodes the front cut is `{s}` while the returned edges are the sink's in-edges, so the two together describe no single cut. Callers who need the partition should derive it from the cut edges, which is consistent by construction; a test asserts that removing them really does separate source from sink.
|
|
99
|
+
|
|
100
|
+
- Algorithm docstrings now state provenance and conventions: whether the result is exact, heuristic, or approximate (`node_coloring` is a heuristic upper bound, `steiner_tree` a 2-approximation, `maximal_matching` maximal but not maximum), whether edge direction is honoured, how parallel edges are treated, and what an unreachable node's sentinel is.
|
|
101
|
+
|
|
102
|
+
- `bellman_ford` keeps integer edge lengths while `dijkstra` and `a_star_search` take doubles. This inconsistency is now documented rather than removed: OGDF's `ShortestPathModule` interface is defined over `int` and ships no floating-point Bellman-Ford, so closing the gap would mean reimplementing the algorithm instead of binding one - and the two are not interchangeable anyway, since Dijkstra rejects the negative weights Bellman-Ford exists for. `shortest_paths()` accepts either array type.
|
|
103
|
+
|
|
104
|
+
### Fixed
|
|
105
|
+
|
|
106
|
+
- Two documentation examples stated values that were never produced by running them: the `drawing_metrics` output in `docs/metrics.md` was written by hand rather than measured, and the topological order in the DAG recipe was a valid ordering but not the one the snippet prints. Both are now the real output, and `tests/test_docs.py` checks them.
|
|
107
|
+
|
|
108
|
+
- The capability counts in the sample `python -m ogdf` report had gone stale as more functions were bound (82/18/22 rather than the current 99/19/27).
|
|
109
|
+
|
|
110
|
+
## [0.4.0]
|
|
111
|
+
|
|
112
|
+
### Added
|
|
113
|
+
|
|
114
|
+
- `ogdf.about()` and `ogdf.about_text()` (also `python -m ogdf`): an installation diagnostic reporting the package version, the OGDF version and the pinned OGDF tag the linked static libraries were built from, OGDF's compiled-in configuration (system, LP solver, memory manager), the platform, the compiler, and a count and listing of the available capabilities. The pinned tag is baked in at build time, so the report describes the extension actually loaded.
|
|
115
|
+
|
|
116
|
+
- Offline and locked-down source builds. `scripts/bootstrap_ogdf.py` can now take the OGDF source from a local archive (`--archive`, `OGDF_ARCHIVE`) or an existing checkout (`--source-dir`, `OGDF_SOURCE_DIR`) instead of cloning, and `--offline` / `OGDF_OFFLINE=1` forbids network access outright. CMake accepts `-DOGDF_PREBUILT_DIR=/path/to/ogdf` (or the matching environment variable) to link against a separately built OGDF and skip the bootstrap entirely.
|
|
117
|
+
|
|
118
|
+
- Documented support matrix: which platform/architecture/CPython combinations have wheels, what a source build requires (tools, disk space, expected build time), and the three offline installation paths.
|
|
119
|
+
|
|
120
|
+
- CI coverage for the claims above: an `offline-build` job asserting that an offline bootstrap refuses to clone (and says how to vendor the source) and then builds and tests from a vendored checkout with `OGDF_OFFLINE=1`; and wheel tests that now import the wheel, print its installation report, and run the full suite - including the interop layer, by installing the optional `networkx` dependency.
|
|
121
|
+
|
|
122
|
+
- Exception taxonomy: `OGDFError` and, under it, `PreconditionError` (a `ValueError`), `InvalidGraphError`, `UnsupportedFormatError` (a `ValueError`), and `AlgorithmError` (a `RuntimeError`). The builtin mix-ins keep existing `except ValueError` / `except RuntimeError` code working.
|
|
123
|
+
|
|
124
|
+
- Consistent precondition enforcement. OGDF documents preconditions but compiles its assertions out of a release build, so violating one was undefined behaviour rather than a diagnosable error. Every wrapper with a documented precondition now checks it first: `SchnyderLayout`, `TreeLayout` (forest), `RadialTreeLayout` (tree), `TutteLayout` (triconnected planar), `DominanceLayout` / `VisibilityLayout` (DAG), `SpringEmbedderKK` (connected), `triangulate` (simple, connected, planar *embedded*), `topological_numbering` (DAG), `min_cut`, `maximum_matching_bipartite`, and `spqr_tree_summary`. The bindings additionally reject arrays belonging to a different graph than the one passed in, `None` node arguments, negative weights where the algorithm assumes non-negative ones (`dijkstra`, `a_star_search`, `max_flow`, `min_cut`, `min_st_cut`, `steiner_tree`), and a source equal to its sink.
|
|
125
|
+
|
|
126
|
+
- Validation helpers that report instead of raising: `requirements(name)`, `validate(name, graph)` (the unmet requirements, in check order), `is_valid_for(name, graph)`, `check(name, graph)`, `operations()`, and `graph_report(graph)` - a full structural description of a graph in one call. The requirement table mirrors the compiled-in checks, so the two cannot disagree.
|
|
127
|
+
|
|
128
|
+
- Predicates `is_simple`, `is_simple_undirected`, `has_self_loops`, and `represents_comb_embedding` (whether a planar embedding is currently in place).
|
|
129
|
+
|
|
130
|
+
- Python interoperability layer. `from_edges` / `to_edges` build a graph from - and report it back as - an ordinary edge list, returning a mapping from the caller's own keys to `Node` handles; extra tuple entries are ignored so a weighted `(u, v, w)` list works unchanged, and parallel edges and self-loops are preserved.
|
|
131
|
+
|
|
132
|
+
- `from_networkx` / `to_networkx` for all four NetworkX classes, with explicit handling of directedness, multiedges, node identity, and layout coordinates. `from_networkx(graph_attributes=True)` also returns a `GraphAttributes` whose `directed` flag matches the input and can copy a NetworkX node attribute into the node labels; `to_networkx` picks a lossless NetworkX class by default and copies `x`, `y`, `width`, `height`, and `label` back out, making a laid-out OGDF drawing directly plottable. NetworkX is an optional dependency, imported lazily.
|
|
133
|
+
|
|
134
|
+
- Array conversion helpers: `node_array_to_dict`, `edge_array_to_dict`, `node_array_to_list`, `edge_array_to_list`, `fill_node_array`, and `fill_edge_array` - keyed by `node.index` / `edge.index` by default, or by a caller-supplied mapping, with a documented node-identity policy.
|
|
135
|
+
|
|
136
|
+
- Result helpers `nodes_where` and `edges_where`, which turn the boolean-array output convention into ordinary Python lists of nodes or edges (a spanning tree, a matching, a cut).
|
|
137
|
+
|
|
138
|
+
- `GraphAttributes.graph` (the graph being described), `GraphAttributes.has(flags)` (whether an attribute group is enabled before reading it), and a readable/writable `GraphAttributes.directed`.
|
|
139
|
+
|
|
140
|
+
- Reproducibility. `set_seed`, `get_seed`, `new_seed`, and the `seeded(n)` context manager wrap OGDF's process-wide random engine, making every stochastic generator, layout, and heuristic reproducible from a recorded seed. `provenance(**settings)` returns JSON-serializable metadata - seed, package version, OGDF version and pinned tag, platform, and the algorithm settings passed in - to store alongside a result. Documented what is and is not guaranteed: same seed and same build reproduce a result exactly; across platforms, compilers, or OGDF versions they do not.
|
|
141
|
+
|
|
142
|
+
- Heuristic algorithms now report their achieved objective value: `SugiyamaLayout.number_of_crossings()` and `.number_of_levels()`, and `PlanarizationLayout.number_of_crossings()`, so runs and seeds can be compared numerically.
|
|
143
|
+
|
|
144
|
+
- Reproducibility tests asserting that a seed reproduces both the generated graph and its coordinates, and that different seeds diverge.
|
|
145
|
+
|
|
146
|
+
- Documentation: a layout selection guide (`docs/choosing-a-layout.md`) organising all nineteen layouts by graph structure, constraint, scale, and intended output, with guidance on directedness, disconnected graphs, multigraphs, determinism, and how to compare candidates numerically; and four end-to-end recipes (`docs/recipes.md`) - NetworkX to SVG, DAG to layered SVG, planar graph to TikZ, and a weighted graph to an annotated drawing. Every recipe is executed by `tests/test_recipes.py` so it cannot silently rot.
|
|
147
|
+
|
|
148
|
+
- Low-level `seed_random_engine` and `draw_random_seed` bindings, wrapped by `set_seed` / `new_seed`.
|
|
149
|
+
|
|
150
|
+
- Tests for invalid, empty, disconnected, cyclic, non-planar, non-bipartite, negative-weight, cross-graph-array, and duplicate-endpoint inputs.
|
|
151
|
+
|
|
152
|
+
### Changed
|
|
153
|
+
|
|
154
|
+
- `docs/coverage.md` now records the Python layer that is not a binding of anything - diagnostics, the exception taxonomy, interoperability, and reproducibility - alongside the OGDF inventory, and its priority roadmap names result ergonomics as the next item: `dijkstra` and `bellman_ford` already compute predecessor arrays internally and discard them, `max_flow` reports no source-side partition, and `bellman_ford`'s integer edge lengths are still inconsistent with the `double` weights used by `dijkstra` and `a_star_search`.
|
|
155
|
+
|
|
156
|
+
- `__version__` is single-sourced from the installed distribution metadata (falling back to the version CMake compiled into the extension) instead of being duplicated in `src/ogdf/__init__.py`. Both derive from `pyproject.toml`, and `tests/test_about.py` asserts they agree, so a stale extension now fails the suite.
|
|
157
|
+
|
|
158
|
+
- Build failures now identify the failing stage. The bootstrap distinguishes a missing tool, a failed source fetch, a failed CMake configuration (typically no C++17 compiler), and a failed compilation; CMake names which of the OGDF and COIN static libraries is missing and tailors the remedy to whether a prebuilt tree or offline mode was requested.
|
|
159
|
+
|
|
160
|
+
- The pinned OGDF tag now lives in a single place, `scripts/ogdf-tag.txt`, read by both the bootstrap script and CMake, so the tag reported by `ogdf.about()` cannot drift from the libraries that were linked.
|
|
161
|
+
|
|
162
|
+
## [0.3.0]
|
|
163
|
+
|
|
164
|
+
### Added
|
|
165
|
+
|
|
166
|
+
- Planar layouts: `FPPLayout`, `PlanarStraightLayout`, `PlanarDrawLayout`, and `MixedModelLayout` - straight-line and mixed-model planar grid drawings, completing the planar-drawing family alongside `SchnyderLayout`. Each validates that the input is a simple planar graph with at least 3 nodes.
|
|
167
|
+
|
|
168
|
+
- Shortest paths: `a_star_search`, point-to-point A* with an optional admissible heuristic; returns the path length and edges, or `None` if the target is unreachable.
|
|
169
|
+
|
|
170
|
+
- Crossing minimization: `crossing_number` (heuristic minimum crossings via the subgraph planarizer) and `insert_edges` (routes a chosen set of edges through the otherwise-planar rest of the graph and returns, per edge, the original edges it crosses).
|
|
171
|
+
|
|
172
|
+
- Flow / cut and connectivity: `min_st_cut` (directed or undirected s-t minimum cut, returning the value and the cut edges) and `node_connectivity` / `edge_connectivity` (global and local/Menger k-connectivity).
|
|
173
|
+
|
|
174
|
+
- Documentation: expanded the coverage checklist with a priority roadmap.
|
|
175
|
+
|
|
176
|
+
## [0.2.0]
|
|
177
|
+
|
|
178
|
+
### Added
|
|
179
|
+
|
|
180
|
+
- Layouts: `RadialTreeLayout`, `LinearLayout` (arc diagram), `TutteLayout` (convex planar), `DominanceLayout` / `VisibilityLayout` (upward, for DAGs), `MultilevelLayout` / `ModularMultilevelMixer` (large graphs), and `BalloonLayout`.
|
|
181
|
+
|
|
182
|
+
- Algorithms: cut vertices (`cut_vertices`) and bridges (`bridges`), Bellman-Ford shortest paths (`bellman_ford`), minimum-cost flow (`min_cost_flow`), general maximum-weight matching (`maximum_weight_matching`, Blossom V), minimum Steiner tree (`steiner_tree`, Mehlhorn), maximal planar subgraph (`maximal_planar_subgraph`), and triconnectivity via `separation_pair` and `spqr_tree_summary`.
|
|
183
|
+
|
|
184
|
+
- Cross-platform Python bootstrap (`scripts/bootstrap_ogdf.py`) replacing the bash script; generalized CMake linking (MSVC-aware); Windows build+test CI job.
|
|
185
|
+
|
|
186
|
+
- MkDocs documentation site (`docs/`) with a coverage checklist and a Gallery page rendering the demo drawings; `make docs`, `make docs-serve`, `make docs-deploy`.
|
|
187
|
+
|
|
188
|
+
- Demos: gallery entries for the new layouts, and algorithm visualizations for cut vertices/bridges, maximum-weight matching, Bellman-Ford distances, minimum-cost flow, the minimum Steiner tree, and the maximal planar subgraph.
|
|
189
|
+
|
|
190
|
+
- Generators: circulant, complete-k-partite, globe, regular-lattice; graph products (cartesian, tensor, strong, lexicographical); operations (union, complement, suspension); and random models (preferential attachment, Chung-Lu, Watts-Strogatz, Waxman, geometric-cube, hierarchy, series-parallel DAG, triconnected, planar-biconnected, planar-triconnected).
|
|
191
|
+
|
|
192
|
+
- Predicates and small algorithms: `is_two_edge_connected`, `is_regular`, `is_arborescence`, `triangulate`, `make_bimodal`, and `bfs_distances` (unweighted single-source distances).
|
|
193
|
+
|
|
194
|
+
- Windows support: the release workflow now builds Windows (AMD64) wheels alongside Linux and macOS, and the wheel matrix covers CPython 3.10-3.14.
|
|
195
|
+
|
|
196
|
+
### Fixed
|
|
197
|
+
|
|
198
|
+
- Removed the persistent CMake `build-dir` from `pyproject.toml`. Sharing it between editable installs and wheel builds could leave stale objects, so a `uv build --wheel` sometimes omitted recently-added functions. Each build now uses a fresh directory (OGDF is prebuilt, so this stays fast).
|
|
199
|
+
|
|
200
|
+
- MSVC build: replaced the non-standard `M_PI` (undefined on MSVC) with an explicit constant so the extension compiles on Windows.
|
|
201
|
+
|
|
202
|
+
## [0.1.1]
|
|
203
|
+
|
|
204
|
+
### Added
|
|
205
|
+
|
|
206
|
+
- OGDF bindings (curated subset): `Graph`/`Node`/`Edge` with iteration; `NodeArray`/`EdgeArray` in int/double/bool; `GraphAttributes` with coordinates, size, labels, and styling (colors, shapes, fill patterns, stroke, edge arrows, bends).
|
|
207
|
+
|
|
208
|
+
- Layout algorithms: `SugiyamaLayout`, `FMMMLayout`, `GEMLayout`, `SpringEmbedderKK`, `StressMinimization`, `PivotMDS`, `PlanarizationLayout` (with optional orthogonal routing), `SchnyderLayout`, `TreeLayout`, `CircularLayout`.
|
|
209
|
+
|
|
210
|
+
- Core graph algorithms: connectivity/structure predicates, connected / strong / biconnected components, topological numbering, Dijkstra shortest paths, minimum spanning tree, maximum flow, global minimum cut, matching, node coloring, and planar embedding.
|
|
211
|
+
|
|
212
|
+
- Graph generators: complete, complete-bipartite, wheel, cube, grid, Petersen, regular tree, plus random graphs, trees, digraphs, and regular / biconnected / planar variants.
|
|
213
|
+
|
|
214
|
+
- File I/O: interchange formats GML, GraphML, DOT, GEXF, GDF, TLP (with extension-based `read`/`write`) and drawing output as SVG and TikZ.
|
|
215
|
+
|
|
216
|
+
- `demos/` folder with illustrative scripts (layout gallery, styling showcase, algorithm visualizations, generator zoo, I/O round-trips) writing to `build/demo-output`; `make demos` also builds a self-contained HTML gallery (`index.html`) of every drawing.
|
|
217
|
+
|
|
218
|
+
- Bindings split into modular translation units (`bind_graph`, `bind_layouts`, `bind_algorithms`, `bind_io`, `bind_generators`).
|
|
219
|
+
|
|
220
|
+
- Auto-generated `_core.pyi` type stub for typed usage and IDE completion.
|
|
221
|
+
|
|
222
|
+
- `cibuildwheel` release workflow building CPython 3.10-3.13 wheels for Linux (x86_64, aarch64) and macOS (x86_64, arm64) on native runners, bootstrapping OGDF once per platform; trusted-publishing jobs for TestPyPI/PyPI on tags.
|
|
223
|
+
|
|
224
|
+
- CMake auto-bootstraps OGDF if missing, so `pip install` from an sdist works without a manual step (Unix only).
|
|
225
|
+
|
|
226
|
+
### Changed
|
|
227
|
+
|
|
228
|
+
- Reproducible OGDF dependency: `scripts/bootstrap_ogdf.py` (cross-platform: Linux, macOS, Windows) shallow-clones OGDF at a pinned tag (`foxglove-202510`) and builds its static libraries from source; the extension links them. `make build`/`make sync` auto-bootstrap if needed. Replaces reliance on a manually placed OGDF checkout.
|
|
229
|
+
|
|
230
|
+
- Persist the CMake build directory so only the bindings recompile on edits.
|
|
231
|
+
|
|
232
|
+
### Fixed
|
|
233
|
+
|
|
234
|
+
- `make build` targeted the wrong package name (`ogdf` vs `ogdf-py`), making it a silent no-op; it now rebuilds correctly.
|
|
235
|
+
|
|
236
|
+
- The generic `write` now raises `ValueError` for attribute-incapable formats (e.g. LEDA, Chaco) instead of crashing the interpreter.
|
|
237
|
+
|
|
238
|
+
## [0.1.0]
|
|
239
|
+
|
|
240
|
+
### Added
|
|
241
|
+
|
|
242
|
+
- Initial project structure
|
|
243
|
+
|
|
244
|
+
- Core module with example functions
|
|
245
|
+
|
|
246
|
+
- Test suite with pytest
|
|
247
|
+
|
|
248
|
+
- Build system using scikit-build-core
|