Repository navigation
Changes since the last Release
Security
-
The OGDF bootstrap verifies that the pinned tag resolves to the commit in
scripts/ogdf-commit.txtand refuses the clone otherwise. A moved tag, or anOGDF_REPOpointing elsewhere, would have changed the code statically linked into published wheels without changing any cache key. An overriddenOGDF_TAGis checked against the tag instead. -
--archive/OGDF_ARCHIVEtarballs are extracted with thedatafilter, or an equivalent member check on interpreters without it. On Python 3.10-3.13 a crafted archive could write outside the extraction directory.
Changed
-
Build requirements are bounded at the next major version:
nanobind>=3.0,<4,scikit-build-core>=0.12.2,<2. A new major could break sdist builds of an already released version. Builds were already resolving nanobind 3.1.0, so the floor matches what is tested. -
Wheels no longer contain the C++ binding sources (about 130 KB), and the sdist no longer contains
.github/orTODO.md. PyPI shows repository, documentation, changelog and issue links, and the keywords describe the package. -
make publishandmake publish-testare removed: a local wheel is tagged for the build machine (macosx_26_0_arm64, or an unrepairedlinux_x86_64that PyPI rejects). Publishing goes throughbuild-publish.yml. -
shortest_pathsraisesPreconditionErrorwhen it would use Bellman-Ford withdirected=False, the default.algorithm="auto"picks Bellman-Ford when anEdgeArrayIntholds a negative length, and it used to switch to directed semantics silently: ona->b, c->bwith one negative length,cwent from distance 2 to unreachable. Passdirected=True. -
SpringEmbedderKK,StressMinimizationandPivotMDScount as layouts.layout(g, "SpringEmbedderKK")raised "unknown layout", andabout()reported 19 layouts and 27 types instead of 22 and 24. Layouts are now the classes with acallmethod rather than those named*Layout.
Fixed
-
Wheels are built for the instruction-set baseline (
-march=x86-64/-march=armv8-a). OGDF's CMake defaults to-march=nativeon GCC and Clang, so 0.5.1 and 0.6.0 wheels contain instructions of the CI runner that built them: the 0.6.0 manylinux and macOS x86_64 wheels use AVX2 and FMA, and the manylinux aarch64 wheel uses SVE. They can crash with an illegal instruction on CPUs without those extensions, which includes most aarch64 machines without SVE (for example AWS Graviton2 and Raspberry Pi). macOS arm64 and Windows wheels were not affected. The same default made a CI cache built on one runner crash another.OGDF_ARCH=nativerestores the old behaviour for local builds. -
validate("TreeLayout", g), and solayout(g, TreeLayout), rejected undirected forests such as0->1, 2->1thatTreeLayoutdraws. The"forest"property tested for rooted forests; it now tests for an undirected cycle, matching the binding.graph_report()["forest"]changes with it. -
layout(seed=...)andcompare_layouts(seed=...)now updateprovenance()["seed"]; they seeded the engine without recording it. -
separation_pairraisesInvalidGraphErroron a graph that is not biconnected. It returnedNone, which means "triconnected", for a path. -
OGDF's own exceptions reach Python as
AlgorithmError(forAlgorithmFailureException) orOGDFError.ogdf::Exceptionderives privately fromstd::exception, so nanobind's fallback could not catch it.maximum_weight_matchingrejects self-loops withInvalidGraphError; Blossom V raised a bareRuntimeError. -
fill_node_array/fill_edge_arraywithkeysskip elements missing fromkeys, as documented; they raisedKeyError. -
The bootstrap re-fetches an OGDF checkout that no longer matches the pin, for example after a tag bump. It reused the old source and compiled the new tag into
ogdf.about(), which then reported the wrong OGDF version. Sources supplied with--archiveor--source-dirare used as they are. -
make typecheck(and somake qa) covers the same paths as CI; ruff and mypy now also coverscripts/, which the release path runs.make distcleanremoves the docs site and the OGDF checkout, as its help says.make buildon Windows no longer re-bootstraps every run (the library isOGDF.libthere). -
CI builds the docs with
mkdocs build --strict, and runs on Ubuntu and macOS with Python 3.10 and 3.14 in addition to Ubuntu with 3.13. -
docs/coverage.mdno longer lists packing and connectivity augmentation as excluded while marking them bound, or lists three items twice. Snippets indocs/getting-started.mdanddocs/metrics.mdrun top to bottom. -
fit_to_boxrejects NaN and infinite sizes and margins. -
PivotMDSandStressMinimizationcompute 2D layouts even when theGraphAttributeshas thethreeDflag, whichALL_ATTRIBUTESandlayout()set. The bindings expose onlyxandy. For a graph whose distances fit in a plane, such as a triangle, the third eigenvalue is 0, and OGDF's unbounded power iteration inPivotMDSnever converged under MSVC: the Windows test run hung. -
CI jobs time out after 30 minutes (wheel jobs after 60) instead of GitHub's 6 hours, and pytest dumps the stack of a test stuck for 5 minutes. An infinite width passed the positivity check and left every coordinate at
+-1.8e308.