GraphLab Project

graphlab.plugins.reports.basicreports
Class NumOfTriangles

java.lang.Object
  extended by graphlab.plugins.reports.basicreports.NumOfTriangles
All Implemented Interfaces:
BasicExtension, Extension, GraphReportExtension, GraphReportInterface

public class NumOfTriangles
extends java.lang.Object
implements GraphReportExtension

Author:
Mohammad Ali Rostami

Constructor Summary
NumOfTriangles()
           
 
Method Summary
 java.lang.Object calculate(GraphData gd)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
static int getNumOfTriangles(GraphModel graph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumOfTriangles

public NumOfTriangles()
Method Detail

calculate

public java.lang.Object calculate(GraphData gd)
Specified by:
calculate in interface GraphReportInterface

getNumOfTriangles

public static int getNumOfTriangles(GraphModel graph)
Returns:
the number of triangles in the given graph

getName

public java.lang.String getName()
Specified by:
getName in interface Extension

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Extension

GraphLab Project