Code for dependency network comparison