Fixed bug, added calculation of edge proposal density.