Pymc3 for graphical models (PGM)

Thanks for replying. I am not very familiar with this domain, just thought there should already be some API for this use-case. May be there are other toolboxes which have this functionality?