GraphLab Project

graphlab.plugins.reports.basicreports
Class NumOfConnectedComponents

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

public class NumOfConnectedComponents
extends java.lang.Object
implements GraphReportExtension

Author:
Mohammad Ali Rostami

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

Constructor Detail

NumOfConnectedComponents

public NumOfConnectedComponents()
Method Detail

calculate

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

getNumOfConnectedComponents

public static int getNumOfConnectedComponents(GraphModel graph)
Returns:
Number of connected components of 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