Repository navigation
TGraphX v1.4.2 — audit-fix patch release
Patch release after a full Codex + Composer audit. No breaking API changes.
Runtime fixes
tgx.make_graph(networkx_graph=G, x=..., labels=..., ...)preserves supplied tensor fields instead of zero-filling..tgxserialization round-tripsGraph.edge_labelsandGraph.graph_features; older bundles still load.Graph.num_classesreturns0for empty integer labels (no moreRuntimeError).Graph.from_adjacencyrejects non-square SciPy-sparse adjacency with a clearValueError.Graph.to(device)also moves boolean/int mask tensors stored undermetadata['masks'].training._unpack_batchraises a descriptiveValueErrorwhenGraphBatch.edge_indexisNone.tgx.train_graph_rl(max_steps=...)actually forwardsmax_stepsthrough aGraphEnvConfigand records it on the returned result.
Public-API discoverability
- v1.4.1 helpers (
classify_nodes,kg_completion,make_graph,generate_graph,optimize_graph,train_graph_rl,audit_package_readiness, …) and their aliases are now intgraphx.ux.public_api's registry;tgx.api_status(...)andtgx.list_aliases(...)resolve them cleanly. - Top-level
tgraphx.__all__addsgenerate,graph_generation_report,compare_generated_graphs,generation_metrics,graph_evolution,run_evolution,run_rl,KnowledgeGraph,KGTrainer,KGTrainingConfig,run_graph_generation,run_evolutionary_optimization,run_graph_rl.
Release metadata
- Official website https://tgraphx.com is now the package
Homepageand is cross-linked fromREADME.md. import tgraphxno longer eagerly importstorchvision.models(lazy import insidePreEncoder).audit_package_readiness()reportstorch,torchvision,pyyamlunderrequired_dependencies; only genuinely optional packages remain inoptional_dependencies.load_tgraphxaccepts an opt-intrust_source=Falsekwarg and documents the pickle trust model.
Documentation
- README dependency wording corrected (no more "no mandatory external dependencies"); official website link added.
docs/user_experience_api_contract.md:graph_featuresandgraph_labelare documented as distinct (not aliases).docs/api_stability.md: added v1.4.0+ UX and v1.4.1+ one-call helper sections.docs/hetero_gnns.md: replaced "parity with reference implementations" with conservative validated-on-small-fixtures wording.CONTRIBUTING.md: Python floor bumped 3.9 → 3.10; claim-control entries fixed to match shipped APIs.environment.yml:python=3.9→python=3.10.
Tests
- New
tests/test_audit_fixes_v142.pyadds 17 regression tests covering every validated audit finding. tests/test_advanced_notebook_workflows_v138.py: MUTAG test no longer downloads in CI; skips unless cached orTGRAPHX_TESTS_ALLOW_NETWORK=1.
Verification
| Gate | Result |
|---|---|
python -m pytest -q |
3351 passed, 23 skipped, 0 failed (≈173 s) |
python -m build |
sdist + wheel built |
python -m twine check dist/* |
PASSED |
| Clean wheel smoke (fresh venv) | PASSED (__version__ == "1.4.2", lazy torchvision confirmed) |
| GitHub Actions CI on PR #1 | All 8 checks passed (Ubuntu 3.10/3.11/3.12, macOS, Windows, wheel + extras smoke) |
Notes
- Every v1.3.x / v1.4.0 / v1.4.1 public name and alias still resolves.
- No SOTA, parity, AMP, or universal
torch.compileclaims have been added.