org.apache.spark.graphx.lib
Class TriangleCount

Object
  extended by org.apache.spark.graphx.lib.TriangleCount

public class TriangleCount
extends Object

Compute the number of triangles passing through each vertex.

The algorithm is relatively straightforward and can be computed in three steps:

Note that the input graph should have its edges in canonical direction (i.e. the sourceId less than destId). Also the graph must have been partitioned using Graph.partitionBy(org.apache.spark.graphx.PartitionStrategy).


Constructor Summary
TriangleCount()
           
 
Method Summary
static
<VD,ED> Graph<Object,ED>
run(Graph<VD,ED> graph, scala.reflect.ClassTag<VD> evidence$1, scala.reflect.ClassTag<ED> evidence$2)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriangleCount

public TriangleCount()
Method Detail

run

public static <VD,ED> Graph<Object,ED> run(Graph<VD,ED> graph,
                                           scala.reflect.ClassTag<VD> evidence$1,
                                           scala.reflect.ClassTag<ED> evidence$2)