Fixes #4.  Does not double count edges.