testadd function

Test addition of edge to graphical model