Welcome to Cegpy’s documentation!

Cegpy (/segpaɪ/) is a Python package for working with Chain Event Graphs. It supports learning the graphical structure of a Chain Event Graph from data, encoding of parametric and structural priors, estimating its parameters, and performing inference.

It is built on top of the Python network modelling package NetworkX.


Check out the Usage section for further information, including how to install the project.


After a year of development, we are releasing v1.0!

Indices and tables