Added sum of logarithms version of vertices/edges.