Repository navigation
ogdf-py 0.5.1
Changes since the last Release
Fixed
-
The
drawing_metricsexample indocs/metrics.mdnow shows values measured from the snippet as written, and says they are machine-specific. The generators draw throughstd::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_realityaccordingly checks the key set, the graph size, and the arithmetic between the documented numbers rather than asserting values no other platform can reproduce. -
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 underpytest tests/and drawing a different graph underpytest tests/test_x.pyor--lf.