Looking for similar functionality as Weka BayesNet and editor

Would you know about setting up just a BayesNet type network. I understand the very basics of it, and I can see how to explain it. It would be a good exercise form to start from that and then compare with other ones. I’m familiar with Weka and would like to get to something like this (https://www.cs.waikato.ac.nz/~remco/weka_bn/node20.html) but programmatically. I’d like to learn a network from data, then set some evidence, and be able to see how it changed.

I have found this library that is able to read the same XMLBIF files that Weka creates/reads (https://programtalk.com/vs2/?source=python/10105/pgmpy/pgmpy/tests/test_readwrite/test_XMLBIF.py)