annas.graph.generate
Class CompleteGraphGenerator<N,A extends ArcInterface<N>>
java.lang.Object
annas.graph.generate.CompleteGraphGenerator<N,A>
- Type Parameters:
N
- Node typeA
- Arc type
- All Implemented Interfaces:
- GraphGenerator<N,A>
public class CompleteGraphGenerator<N,A extends ArcInterface<N>>
- extends java.lang.Object
- implements GraphGenerator<N,A>
Generates a Complete Graph @see shown here
- Author:
- Sam Wilson
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompleteGraphGenerator
public CompleteGraphGenerator(int size)
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 objectfactory
- Factory for creating nodes.map
- Provides a means of communication data to the generating
algorithm.