GraphLab Project

graphlab.plugins.graphgenerator.generators
Class BananaTreeGenerator

java.lang.Object
  extended by graphlab.plugins.graphgenerator.generators.BananaTreeGenerator
All Implemented Interfaces:
BasicExtension, Extension, Parametrizable, GraphGeneratorExtension, GraphGeneratorInterface

public class BananaTreeGenerator
extends java.lang.Object
implements GraphGeneratorExtension, Parametrizable


Field Summary
 int k
           
 int n
           
 
Constructor Summary
BananaTreeGenerator()
           
 
Method Summary
 java.lang.String checkParameters()
          checks the parameters and return an error string if the parameter values are invalid, otherwise it returns null, also if some other fields should be set after setting the parameters you can do it in this method
static GraphModel generateBananaTree(int n, int k)
           
 GraphModel generateGraph()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

n

public int n

k

public int k
Constructor Detail

BananaTreeGenerator

public BananaTreeGenerator()
Method Detail

checkParameters

public java.lang.String checkParameters()
Description copied from interface: Parametrizable
checks the parameters and return an error string if the parameter values are invalid, otherwise it returns null, also if some other fields should be set after setting the parameters you can do it in this method

Specified by:
checkParameters in interface Parametrizable

getName

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

getDescription

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

generateGraph

public GraphModel generateGraph()
Specified by:
generateGraph in interface GraphGeneratorInterface

generateBananaTree

public static GraphModel generateBananaTree(int n,
                                            int k)

main

public static void main(java.lang.String[] args)

GraphLab Project