org._3pq.jgrapht.generate

Class EmptyGraphGenerator

Implemented Interfaces:
GraphGenerator

public class EmptyGraphGenerator
extends java.lang.Object
implements GraphGenerator

Generates an empty graph of any size. An empty graph is a graph that has no edges.
Author:
John V. Sichi
Since:
Sep 16, 2003

Constructor Summary

EmptyGraphGenerator(int size)
Construct a new EmptyGraphGenerator.

Method Summary

void
generateGraph(Graph target, VertexFactory vertexFactory, Map resultMap)

Constructor Details

EmptyGraphGenerator

public EmptyGraphGenerator(int size)
Construct a new EmptyGraphGenerator.
Parameters:
size - number of vertices to be generated

Method Details

generateGraph

public void generateGraph(Graph target,
                          VertexFactory vertexFactory,
                          Map resultMap)
Specified by:
generateGraph in interface GraphGenerator