graphlab.plugins.graphgenerator.generators
Class BananaTreeGenerator
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
n
public int n
k
public int k
BananaTreeGenerator
public BananaTreeGenerator()
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)