<li><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
extends <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></pre>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#mxGraphGenerator(com.mxgraph.generatorfunction.mxGeneratorFunction, com.mxgraph.costfunction.mxCostFunction)">mxGraphGenerator</a></strong>(<ahref="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a> generatorFunction,
<ahref="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</a> costFunction)</code> </td>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getBipartiteGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getBipartiteGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVerticesGroup1,
int numVerticesGroup2)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCompleteBipartiteGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getCompleteBipartiteGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCompleteGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getCompleteGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVertices)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getFriendshipWindmillGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getFriendshipWindmillGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numBranches,
int branchSize)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a></code></td>
<tdclass="colFirst"><code>static <ahref="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGeneratorFunction(com.mxgraph.view.mxGraph, boolean, double, double)">getGeneratorFunction</a></strong>(<ahref="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</a> graph,
boolean weighted,
double minWeight,
double maxWeight)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGridGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getGridGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numColumns,
int numRows)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKingGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getKingGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[]</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKingMoveVertexes(com.mxgraph.analysis.mxAnalysisGraph, int, int, int, int)">getKingMoveVertexes</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int xDim,
int yDim,
int xCoord,
int yCoord)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getKnightGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[]</code></td>
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true"title="class or interface in java.lang">Double</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getNewEdgeValue(com.mxgraph.analysis.mxAnalysisGraph)">getNewEdgeValue</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph)</code>
<divclass="block">Creates a new edge value based on graph properties in mxAnalysisGraph.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getNullGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getNullGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVertices)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getPathGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getPathGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVertices)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getPetersenGraph(com.mxgraph.analysis.mxAnalysisGraph)">getPetersenGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getSimpleRandomGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int, boolean, boolean, boolean)">getSimpleRandomGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numNodes,
int numEdges,
boolean allowSelfLoops,
boolean allowMultipleEdges,
boolean forceConnected)</code>
<divclass="block">Generates a random graph</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getSimpleRandomTree(com.mxgraph.analysis.mxAnalysisGraph, int)">getSimpleRandomTree</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int vertexCount)</code>
<divclass="block">Generates a random tree graph</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getStarGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getStarGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
<divclass="block">use this only with the grid graph, and various chess-board graphs, because of vertex ordering</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getWheelGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getWheelGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVertices)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#getWindmillGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getWindmillGraph</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numBranches,
int branchSize)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#oneSpanningTree(com.mxgraph.analysis.mxAnalysisGraph, boolean, boolean)">oneSpanningTree</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
boolean forceConnected,
boolean forceSimple)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#setBipartiteGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, int, int, double, double)">setBipartiteGraphSpacing</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVerticesGroup1,
int numVerticesGroup2,
double vertexSpacing,
double groupSpacing)</code>
<divclass="block">Sets the physical spacing between vertices in a bipartite graph.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#setCostFunction(com.mxgraph.costfunction.mxCostFunction)">setCostFunction</a></strong>(<ahref="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</a> costFunction)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#setGridGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, double, double, int, int)">setGridGraphSpacing</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
double xSpacing,
double ySpacing,
int numColumns,
int numRows)</code>
<divclass="block">Sets the physical spacing between vertices in a grid graph.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#setPathGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, double)">setPathGraphSpacing</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
double spacing)</code>
<divclass="block">Sets the physical spacing between vertices in a path graph.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#setStarGraphLayout(com.mxgraph.analysis.mxAnalysisGraph, double)">setStarGraphLayout</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
double graphSize)</code>
<divclass="block">Sets the physical size of a star graph.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxGraphGenerator.html#setWindmillGraphLayout(com.mxgraph.analysis.mxAnalysisGraph, int, int, double)">setWindmillGraphLayout</a></strong>(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numBranches,
int numVerticesInBranch,
double graphSize)</code>
<divclass="block">Sets the layout of a windmill graph.</div>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</a></code></li>
<pre>public mxGraphGenerator(<ahref="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a> generatorFunction,
<ahref="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</a> costFunction)</pre>
<pre>public void getNullGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
<pre>public void getCompleteGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVertices)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVertices</code> - number of vertices</dd></dl>
<pre>public void getGridGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numColumns,
int numRows)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numRows</code> - - number of rows in the grid graph</dd><dd><code>numColumns</code> - - number of columns in the grid graph</dd></dl>
<pre>public void setGridGraphSpacing(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
double xSpacing,
double ySpacing,
int numColumns,
int numRows)</pre>
<divclass="block">Sets the physical spacing between vertices in a grid graph. This works for now only for a graph generated with mxGraphCreator.getGridGraph() only after creating the graph</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>xSpacing</code> - - horizontal spacing between vertices</dd><dd><code>ySpacing</code> - - vertical spacing between vertices</dd><dd><code>numRows</code> - - number of rows in the grid graph</dd><dd><code>numColumns</code> - - number of columns in the grid graph</dd></dl>
<pre>public void getBipartiteGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVerticesGroup1,
int numVerticesGroup2)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVerticesGroup1</code> - number of vertices in group 1</dd><dd><code>numVerticesGroup2</code> - number of vertices in group 2</dd></dl>
<pre>public void setBipartiteGraphSpacing(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVerticesGroup1,
int numVerticesGroup2,
double vertexSpacing,
double groupSpacing)</pre>
<divclass="block">Sets the physical spacing between vertices in a bipartite graph. This works for now only for a graph generated with mxGraphCreator.getBipartiteGraph()
only after creating the graph</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVerticesGroup1</code> - - number of vertices in group 1</dd><dd><code>numVerticesGroup2</code> - - number of vertices in group 2</dd><dd><code>vertexSpacing</code> - - vertical spacing between vertices in the same group</dd><dd><code>groupSpacing</code> - - spacing between groups</dd></dl>
<pre>public void getCompleteBipartiteGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVerticesGroup1,
int numVerticesGroup2)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVerticesGroup1</code> - number of vertices in group 1</dd><dd><code>numVerticesGroup2</code> - number of vertices in group 2</dd></dl>
<pre>public void getKnightGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] getKnightMoveVertexes(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>xDim</code> - x dimension of chess-board, size starts from 1</dd><dd><code>yDim</code> - y dimension of chess-board, size starts from 1</dd><dd><code>xCoord</code> - x coordinate on the chess-board, coordinate starts from 1</dd><dd><code>yCoord</code> - y coordinate on the chess-board, coordinate starts from 1</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>a list of ALL vertexes which would be valid moves from the current position, regardless if they were visited or not
Note that both dimensions and both coordinates must be positive</dd></dl>
<divclass="block">use this only with the grid graph, and various chess-board graphs, because of vertex ordering</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>xDim</code> - x dimension of chess-board, size starts from 1</dd><dd><code>yDim</code> - y dimension of chess-board, size starts from 1</dd><dd><code>value</code> - value of the vertex that needs coordinates returned</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>int[x,y] where x and y are the coordinates in the grid or chess-board
Note that both dimensions must be positive</dd></dl>
<pre>public void getKingGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int xDim,
int yDim)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>xDim</code> - </dd><dd><code>yDim</code> - </dd><dd><code>weights</code> - Return a king graph of size <b>xDim</b> x <b>yDim</b>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] getKingMoveVertexes(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>xDim</code> - x dimension of the chessboard</dd><dd><code>yDim</code> - y dimension of the chessboard</dd><dd><code>xCoord</code> - the current x position of the king</dd><dd><code>yCoord</code> - the current y position of the king</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>list of all possible moves of a king from the specified position
Note that both dimensions and both coordinates must be positive</dd></dl>
<pre>public void getPetersenGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - Returns a Petersen graph</dd></dl>
<pre>public void getPathGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVertices)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVertices</code> - Returns a path graph</dd></dl>
<pre>public void setPathGraphSpacing(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
double spacing)</pre>
<divclass="block">Sets the physical spacing between vertices in a path graph. This works for now only for a graph generated with mxGraphCreator.getPathGraph()
<pre>public void getStarGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVertices)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVertices</code> - Returns a star graph
<pre>public void setStarGraphLayout(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
double graphSize)</pre>
<divclass="block">Sets the physical size of a star graph. This works for now only for a graph generated with mxGraphCreator.getStarGraph() and getWheelGraph()</div>
<pre>public void getWheelGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numVertices)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVertices</code> - Returns a wheel graph. Note that numVertices has to be at least 4.</dd></dl>
<pre>public void getFriendshipWindmillGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numBranches,
int branchSize)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numBranches</code> - number of branches (minimum >= 2)</dd><dd><code>branchSize</code> - number of vertices in a single branch (minimum >= 2)
Returns a friendship windmill graph (aka Dutch windmill)</dd></dl>
<pre>public void getWindmillGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numBranches,
int branchSize)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numBranches</code> - - number of branches (minimum >= 2)</dd><dd><code>branchSize</code> - - number of vertices in a single branch (minimum >= 2)
<pre>public void setWindmillGraphLayout(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numBranches,
int numVerticesInBranch,
double graphSize)</pre>
<divclass="block">Sets the layout of a windmill graph. Use this method only for graphs generated with mxGraphGenerator.getWindmillGraph() and getFriendshitWindmillGraph()</div>
<pre>public void getSimpleRandomGraph(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int numNodes,
int numEdges,
boolean allowSelfLoops,
boolean allowMultipleEdges,
boolean forceConnected)</pre>
<divclass="block">Generates a random graph</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numNodes</code> - number of vertexes</dd><dd><code>numEdges</code> - number of edges (may be inaccurate if <b>forceConnected</b> is set to true</dd><dd><code>allowSelfLoops</code> - if true, there will be a chance that self loops will be generated too</dd><dd><code>allowMultipleEdges</code> - if true, there will be a chance that multiple edges will be generated (multiple edges between the same two vertices)</dd><dd><code>forceConnected</code> - if true the resulting graph will be always connected, but this may alter <b>numEdges</b></dd></dl>
<pre>public void getSimpleRandomTree(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int vertexCount)</pre>
<divclass="block">Generates a random tree graph</div>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true"title="class or interface in java.lang">Double</a> getNewEdgeValue(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph)</pre>
<divclass="block">Creates a new edge value based on graph properties in mxAnalysisGraph. Used mostly when creating new edges during graph generation.</div>
<pre>public static <ahref="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a> getGeneratorFunction(<ahref="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</a> graph,
boolean weighted,
double minWeight,
double maxWeight)</pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>graph</code> - </dd><dd><code>weighted</code> - if true, the edges will be weighted, otherwise all will have default value (1.0)</dd><dd><code>minWeight</code> - minimum edge weight if weighted</dd><dd><code>maxWeight</code> - maximum edge weight if weighted</dd>
<pre>public <ahref="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a> getGeneratorFunction()</pre>
<pre>public void oneSpanningTree(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
boolean forceConnected,
boolean forceSimple)
throws <ahref="../../../com/mxgraph/analysis/StructuralException.html"title="class in com.mxgraph.analysis">StructuralException</a></pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>graph</code> - </dd><dd><code>forceConnected</code> - if true, an unconnected graph is made connected</dd><dd><code>forceSimple</code> - if true, a non-simple graph is made simple
<dd><code><ahref="../../../com/mxgraph/analysis/StructuralException.html"title="class in com.mxgraph.analysis">StructuralException</a></code> - the graph has to be simple (no self-loops and no multiple edges)</dd></dl>
<pre>public void getKnightTour(<ahref="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
int xDim,
int yDim,
int startVertexValue)
throws <ahref="../../../com/mxgraph/analysis/StructuralException.html"title="class in com.mxgraph.analysis">StructuralException</a></pre>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>xDim</code> - x dimension of the chessboard</dd><dd><code>yDim</code> - y dimension of the chessboard</dd><dd><code>startVertexValue</code> - vertex where the tour will start</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../com/mxgraph/analysis/StructuralException.html"title="class in com.mxgraph.analysis">StructuralException</a></code> - not all size combinations are allowed, see wikipedia for a more detailed explanation
Returns a Knight's Tour graph</dd></dl>
</li>
</ul>
<aname="getCostFunction()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getCostFunction</h4>
<pre>public <ahref="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</a> getCostFunction()</pre>
<pre>public void setCostFunction(<ahref="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</a> costFunction)</pre>