annas.graph.generate
Class WheelGraphGenerator<N,A extends ArcInterface<N>>

java.lang.Object
  extended by annas.graph.generate.WheelGraphGenerator<N,A>
Type Parameters:
N - Node type
A - Arc type
All Implemented Interfaces:
GraphGenerator<N,A>

public class WheelGraphGenerator<N,A extends ArcInterface<N>>
extends java.lang.Object
implements GraphGenerator<N,A>

Generates a Wheel Graph @see shown here

Author:
Sam Wilson

Constructor Summary
WheelGraphGenerator(int size)
           
 
Method Summary
 void generate(GraphInterface<N,A> target, NodeFactory<N> factory, java.util.Map<java.lang.String,java.lang.Object> map)
          Generates a graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WheelGraphGenerator

public WheelGraphGenerator(int size)
Method Detail

generate

public void generate(GraphInterface<N,A> target,
                     NodeFactory<N> factory,
                     java.util.Map<java.lang.String,java.lang.Object> map)
Generates a graph.

Specified by:
generate in interface GraphGenerator<N,A extends ArcInterface<N>>
Parameters:
target - Target Graph object
factory - Factory for creating nodes.
map - Provides a means of communication data to the generating algorithm.