Visualization of Algorithms for graphs and Bayesian Networks