Adds method local_independencies to BayesianNetwork class