apache/spark — pull request #2495 by jegonzal (2014-09-22 22:26:34+00:00)
Title: [SPARK-3650] Fix TriangleCount handling of reverse edges

This PR causes the TriangleCount algorithm to remove self-edges, direct edges from low-id to high-id (canonical direction), and then remove duplicate edges, before running the triangle count algorithm.