public abstract class GraphGenerator extends Object
Constructor and Description |
---|
GraphGenerator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
generate(Vector<GraphNode> nodes,
Vector<GraphEdge> edges,
int nodesNum,
int gridWidth,
int gridHeight,
int cellWidth,
int minNodeWeight,
int maxNodeWeight,
int minEdgeCost,
int maxEdgeCost,
int nodeWeighting,
Random random)
Generates a graph.
|
public abstract void generate(Vector<GraphNode> nodes, Vector<GraphEdge> edges, int nodesNum, int gridWidth, int gridHeight, int cellWidth, int minNodeWeight, int maxNodeWeight, int minEdgeCost, int maxEdgeCost, int nodeWeighting, Random random)
nodes
- an empty Vector<GraphNode>
where the nodes of the new graph shall be added.edges
- an empty Vector<GraphEdge>
where the edges of the new graph shall be added.nodesNum
- Number of node that the generated graph will have.gridWidth
- gridHeight
- cellWidth
- minNodeWeight
- maxNodeWeight
- minEdgeCost
- maxEdgeCost
- nodeWeighting
- Copyright © 2013. All Rights Reserved.