001 // GraphLab Project: http://graphlab.sharif.edu 002 // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology 003 // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/ 004 005 package graphlab.samples.extensions; 006 007 import graphlab.plugins.main.GraphData; 008 import graphlab.plugins.reports.extension.GraphReportExtension; 009 010 public class NumOfVerticesReport implements GraphReportExtension { 011 public String getName() { 012 return "num of vertices"; 013 } 014 015 public String getDescription() { 016 return "Number of vertices in graph"; 017 } 018 019 public Object calculate(GraphData gd) { 020 return 0; 021 } 022 }