add and remove edges and variable from a bayesina network