annas.graph.generate
Interface GraphGenerator<N,A extends ArcInterface<N>>

Type Parameters:
N - Node type
A - Arc type
All Known Implementing Classes:
CompleteGraphGenerator, EmptyGraphGenerator, HyperGraphGenerator, LinearGraphGenerator, RingGraphGenerator, StarGraphGenerator, WheelGraphGenerator

public interface GraphGenerator<N,A extends ArcInterface<N>>

Interface all Graph generating classes should implement.

Author:
Sam Wilson

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

Method Detail

generate

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

Parameters:
target - Target Graph object
factory - Factory for creating nodes.
map - Provides a means of communication data to the generating algorithm.