GraphLab Project

graphlab.plugins.graphgenerator.generators
Class CircleGenerator

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

public class CircleGenerator
extends PathGenerator

Author:
azin azadi

Field Summary
 
Fields inherited from class graphlab.plugins.graphgenerator.generators.PathGenerator
n
 
Constructor Summary
CircleGenerator()
           
 
Method Summary
static GraphModel generateCircle(int n)
          generates a Circle Graph with given parameters
 GraphModel generateGraph()
           
 java.lang.String getDescription()
           
 EdgeModel[] getEdges()
           
 java.lang.String getName()
           
 java.awt.Point[] getVertexPositions()
           
 VertexModel[] getVertices()
           
 
Methods inherited from class graphlab.plugins.graphgenerator.generators.PathGenerator
checkParameters, generatePath, setWorkingGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleGenerator

public CircleGenerator()
Method Detail

getName

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

getDescription

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

getEdges

public EdgeModel[] getEdges()
Specified by:
getEdges in interface SimpleGeneratorInterface
Overrides:
getEdges in class PathGenerator

getVertices

public VertexModel[] getVertices()
Specified by:
getVertices in interface SimpleGeneratorInterface
Overrides:
getVertices in class PathGenerator

generateGraph

public GraphModel generateGraph()
Specified by:
generateGraph in interface GraphGeneratorInterface
Overrides:
generateGraph in class PathGenerator

getVertexPositions

public java.awt.Point[] getVertexPositions()
Specified by:
getVertexPositions in interface SimpleGeneratorInterface
Overrides:
getVertexPositions in class PathGenerator

generateCircle

public static GraphModel generateCircle(int n)
generates a Circle Graph with given parameters


GraphLab Project