distributions.R now deals with undirected nets