public class GridGraph
extends java.lang.Object
Constructor and Description |
---|
GridGraph(int numRows,
int numColumns)
Instantiates a new grid graph.
|
Modifier and Type | Method and Description |
---|---|
edu.uci.ics.jung.graph.Graph<Vertex,Edge> |
getGraph()
Gets the graph.
|
edu.uci.ics.jung.algorithms.layout.AbstractLayout<Vertex,Edge> |
getLayout()
Gets the layout.
|
void |
setDistX(int x)
Sets the dist X.
|
void |
setDistY(int y)
Sets the dist Y.
|
public GridGraph(int numRows, int numColumns)
numRows
- the num rowsnumColumns
- the num columns