pgmpy [pgmpy] is a python library for working with graphical models. It al- lows the user to create their own graphical models and answer inference or map queries over them. pgmpy has implementation of many inference algorithms like VariableElimination, Belief Propagation etc.