annas.graph.generate
Interface GraphGenerator<N,A extends ArcInterface<N>>
- Type Parameters:
N
- Node typeA
- 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
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 objectfactory
- Factory for creating nodes.map
- Provides a means of communication data to the generating
algorithm.