|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphGenerator
Graph generators generate graphs of various types.
A graph generator should get an empty class Graph
,
and create a graph. Generators could be parametrized, and the most
probable way that the graph generator will work is this way.
For instance, a generator which creates a complete graph will
ask for the number of vertices as a parameter, and then
create a complete graph.
Graph generators are shown on bottom of the submenu "New".
Parametrizable
Method Summary | |
---|---|
java.lang.String |
getDescription()
Retrieves the description of the generator. |
java.lang.String |
getName()
Retrieves the name of the generator. |
void |
newGraph(Graph graph)
Implementation of this method are supplied with a blank graph object, where they should create a desired graph. |
Method Detail |
---|
java.lang.String getName()
java.lang.String getDescription()
void newGraph(Graph graph)
graph
- The graph.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |