📚 Python API
Use the Python API to build stochastic tree and network simulators, define model-specific event rules and custom hazards, and run simulations directly from Python. This reference covers the core simulation interfaces, configuration and input/output utilities, and built-in model implementations.
- 📦 Core
MSAEdgeNetNet.nodesNet.n_nodesNet.edgesNet.n_edgesNet.rootNet.stemNet.children_of()Net.parents_of()Net.is_leaf()Net.get_leaves()Net.count_leaves()Net.is_internal()Net.get_internals()Net.count_internals()Net.get_node_id()Net.get_node()Net.to_newick()Net.dump()Net.pretty_print()Net.__iter__()
NodeSequenceRecordTree
- ⚙️ Configurations
- ⚛️ Roots
- 🛡️ Typeguards
- 🎲 Hazards
- 🧱 Core
- 🌱 BDSH
- 🔗 Coalescent
- 🦠 Epidemic
- 🏃 Runner
- 🛠️ Utils
- 💾 Input/output
- 💻 Simulator
- 🏷️ Types
- 🛠️ Utils