Skip to content

Python API

The reference pages in this section are generated from the Python API stubs in python/tonggraph/. The runtime implementation is provided by the compiled PyO3 extension.

Use these pages for signatures, argument shapes, and return values. For algorithmic behavior, start with Algorithms. For pattern query behavior, see Query Layer. For probabilistic inference, see Belief Propagation. For storage behavior, see Persistence.

Core Classes

  • Graph is the mutable embedded graph database.
  • GraphSnapshot is a read-only copy of graph state used for stable query and compute views.

Records