Skip to content

TGraphX v1.4.2 — audit-fix patch release

Choose a tag to compare

@arashsajjadi arashsajjadi released this 23 May 08:16
· 13 commits to main since this 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.
  • .tgx serialization round-trips Graph.edge_labels and Graph.graph_features; older bundles still load.
  • Graph.num_classes returns 0 for empty integer labels (no more RuntimeError).
  • Graph.from_adjacency rejects non-square SciPy-sparse adjacency with a clear ValueError.
  • Graph.to(device) also moves boolean/int mask tensors stored under metadata['masks'].
  • training._unpack_batch raises a descriptive ValueError when GraphBatch.edge_index is None.
  • tgx.train_graph_rl(max_steps=...) actually forwards max_steps through a GraphEnvConfig and 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 in tgraphx.ux.public_api's registry; tgx.api_status(...) and tgx.list_aliases(...) resolve them cleanly.
  • Top-level tgraphx.__all__ adds generate, 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 Homepage and is cross-linked from README.md.
  • import tgraphx no longer eagerly imports torchvision.models (lazy import inside PreEncoder).
  • audit_package_readiness() reports torch, torchvision, pyyaml under required_dependencies; only genuinely optional packages remain in optional_dependencies.
  • load_tgraphx accepts an opt-in trust_source=False kwarg 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_features and graph_label are 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.py adds 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 or TGRAPHX_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.compile claims have been added.