Bayesian networks (BNs) are a type of probabilistic graphical model that are widely used for a variety of tasks, such as prediction, diagnosis, and treatment selection. BNs are composed of a directed acyclic graph (DAG) with nodes that represent random variables, and edges that represent the dependency relationships between the variables. BNs have a number…