<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>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.analysis.mxGraphGenerator</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>mxGraphGenerator</B><DT>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></DL>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#mxGraphGenerator(com.mxgraph.generatorfunction.mxGeneratorFunction, com.mxgraph.costfunction.mxCostFunction)">mxGraphGenerator</A></B>(<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><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getBipartiteGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getBipartiteGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCompleteBipartiteGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getCompleteBipartiteGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCompleteGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getCompleteGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<CODE> <AHREF="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getFriendshipWindmillGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getFriendshipWindmillGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<CODE> <AHREF="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</A></CODE></FONT></TD>
<CODE>static <AHREF="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGeneratorFunction(com.mxgraph.view.mxGraph, boolean, double, double)">getGeneratorFunction</A></B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGridGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getGridGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKingGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getKingGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKingMoveVertexes(com.mxgraph.analysis.mxAnalysisGraph, int, int, int, int)">getKingMoveVertexes</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getKnightGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightMoveVertexes(com.mxgraph.analysis.mxAnalysisGraph, int, int, int, int)">getKnightMoveVertexes</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getNewEdgeValue(com.mxgraph.analysis.mxAnalysisGraph)">getNewEdgeValue</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph)</CODE>
<BR>
Creates a new edge value based on graph properties in mxAnalysisGraph.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getNullGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getNullGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getPathGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getPathGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getPetersenGraph(com.mxgraph.analysis.mxAnalysisGraph)">getPetersenGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getSimpleRandomTree(com.mxgraph.analysis.mxAnalysisGraph, int)">getSimpleRandomTree</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int vertexCount)</CODE>
<BR>
Generates a random tree graph</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getStarGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getStarGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
use this only with the grid graph, and various chess-board graphs, because of vertex ordering</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getWheelGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getWheelGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#getWindmillGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getWindmillGraph</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#oneSpanningTree(com.mxgraph.analysis.mxAnalysisGraph, boolean, boolean)">oneSpanningTree</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#setCostFunction(com.mxgraph.costfunction.mxCostFunction)">setCostFunction</A></B>(<AHREF="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</A> costFunction)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#setPathGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, double)">setPathGraphSpacing</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
double spacing)</CODE>
<BR>
Sets the physical spacing between vertices in a path graph.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/analysis/mxGraphGenerator.html#setStarGraphLayout(com.mxgraph.analysis.mxAnalysisGraph, double)">setStarGraphLayout</A></B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
double graphSize)</CODE>
<BR>
Sets the physical size of a star graph.</TD>
<THALIGN="left"><B>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></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><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></TD>
public <B>mxGraphGenerator</B>(<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>
public void <B>getNullGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
public void <B>getCompleteGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numVertices)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numVertices</CODE> - number of vertices</DL>
public void <B>getGridGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numColumns,
int numRows)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numRows</CODE> - - number of rows in the grid graph<DD><CODE>numColumns</CODE> - - number of columns in the grid graph</DL>
public void <B>setGridGraphSpacing</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
double xSpacing,
double ySpacing,
int numColumns,
int numRows)</PRE>
<DL>
<DD>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
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>xSpacing</CODE> - - horizontal spacing between vertices<DD><CODE>ySpacing</CODE> - - vertical spacing between vertices<DD><CODE>numRows</CODE> - - number of rows in the grid graph<DD><CODE>numColumns</CODE> - - number of columns in the grid graph</DL>
public void <B>getBipartiteGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numVerticesGroup1,
int numVerticesGroup2)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numVerticesGroup1</CODE> - number of vertices in group 1<DD><CODE>numVerticesGroup2</CODE> - number of vertices in group 2</DL>
public void <B>setBipartiteGraphSpacing</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numVerticesGroup1,
int numVerticesGroup2,
double vertexSpacing,
double groupSpacing)</PRE>
<DL>
<DD>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
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numVerticesGroup1</CODE> - - number of vertices in group 1<DD><CODE>numVerticesGroup2</CODE> - - number of vertices in group 2<DD><CODE>vertexSpacing</CODE> - - vertical spacing between vertices in the same group<DD><CODE>groupSpacing</CODE> - - spacing between groups</DL>
public void <B>getCompleteBipartiteGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numVerticesGroup1,
int numVerticesGroup2)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numVerticesGroup1</CODE> - number of vertices in group 1<DD><CODE>numVerticesGroup2</CODE> - number of vertices in group 2</DL>
public void <B>getKnightGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
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>[] <B>getKnightMoveVertexes</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int xDim,
int yDim,
int xCoord,
int yCoord)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>xDim</CODE> - x dimension of chess-board, size starts from 1<DD><CODE>yDim</CODE> - y dimension of chess-board, size starts from 1<DD><CODE>xCoord</CODE> - x coordinate on the chess-board, coordinate starts from 1<DD><CODE>yCoord</CODE> - y coordinate on the chess-board, coordinate starts from 1
<DT><B>Returns:</B><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</DL>
public int[] <B>getVertexGridCoords</B>(int xDim,
int yDim,
int value)</PRE>
<DL>
<DD>use this only with the grid graph, and various chess-board graphs, because of vertex ordering
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>xDim</CODE> - x dimension of chess-board, size starts from 1<DD><CODE>yDim</CODE> - y dimension of chess-board, size starts from 1<DD><CODE>value</CODE> - value of the vertex that needs coordinates returned
<DT><B>Returns:</B><DD>int[x,y] where x and y are the coordinates in the grid or chess-board
public void <B>getKingGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int xDim,
int yDim)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>xDim</CODE> - <DD><CODE>yDim</CODE> - <DD><CODE>weights</CODE> - Return a king graph of size <b>xDim</b> x <b>yDim</b>
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>[] <B>getKingMoveVertexes</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int xDim,
int yDim,
int xCoord,
int yCoord)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>xDim</CODE> - x dimension of the chessboard<DD><CODE>yDim</CODE> - y dimension of the chessboard<DD><CODE>xCoord</CODE> - the current x position of the king<DD><CODE>yCoord</CODE> - the current y position of the king
<DT><B>Returns:</B><DD>list of all possible moves of a king from the specified position
Note that both dimensions and both coordinates must be positive</DL>
public void <B>getPetersenGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - Returns a Petersen graph</DL>
public void <B>getPathGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numVertices)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numVertices</CODE> - Returns a path graph</DL>
public void <B>setPathGraphSpacing</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
double spacing)</PRE>
<DL>
<DD>Sets the physical spacing between vertices in a path graph. This works for now only for a graph generated with mxGraphCreator.getPathGraph()
public void <B>getStarGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numVertices)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numVertices</CODE> - Returns a star graph
public void <B>setStarGraphLayout</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
double graphSize)</PRE>
<DL>
<DD>Sets the physical size of a star graph. This works for now only for a graph generated with mxGraphCreator.getStarGraph() and getWheelGraph()
public void <B>getWheelGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numVertices)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numVertices</CODE> - Returns a wheel graph. Note that numVertices has to be at least 4.</DL>
public void <B>getFriendshipWindmillGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numBranches,
int branchSize)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numBranches</CODE> - number of branches (minimum >= 2)<DD><CODE>branchSize</CODE> - number of vertices in a single branch (minimum >= 2)
Returns a friendship windmill graph (aka Dutch windmill)</DL>
public void <B>getWindmillGraph</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numBranches,
int branchSize)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numBranches</CODE> - - number of branches (minimum >= 2)<DD><CODE>branchSize</CODE> - - number of vertices in a single branch (minimum >= 2)
public void <B>setWindmillGraphLayout</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
int numBranches,
int numVerticesInBranch,
double graphSize)</PRE>
<DL>
<DD>Sets the layout of a windmill graph. Use this method only for graphs generated with mxGraphGenerator.getWindmillGraph() and getFriendshitWindmillGraph()
public void <B>getSimpleRandomGraph</B>(<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>
<DL>
<DD>Generates a random graph
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>numNodes</CODE> - number of vertexes<DD><CODE>numEdges</CODE> - number of edges (may be inaccurate if <b>forceConnected</b> is set to true<DD><CODE>allowSelfLoops</CODE> - if true, there will be a chance that self loops will be generated too<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><CODE>forceConnected</CODE> - if true the resulting graph will be always connected, but this may alter <b>numEdges</b></DL>
public void <B>getSimpleRandomTree</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph,
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><B>getNewEdgeValue</B>(<AHREF="../../../com/mxgraph/analysis/mxAnalysisGraph.html"title="class in com.mxgraph.analysis">mxAnalysisGraph</A> aGraph)</PRE>
<DL>
<DD>Creates a new edge value based on graph properties in mxAnalysisGraph. Used mostly when creating new edges during graph generation.
public static <AHREF="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</A><B>getGeneratorFunction</B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph,
boolean weighted,
double minWeight,
double maxWeight)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>graph</CODE> - <DD><CODE>weighted</CODE> - if true, the edges will be weighted, otherwise all will have default value (1.0)<DD><CODE>minWeight</CODE> - minimum edge weight if weighted<DD><CODE>maxWeight</CODE> - maximum edge weight if weighted
<DT><B>Returns:</B><DD>a generator function</DL>
</DD>
</DL>
<HR>
<ANAME="getGeneratorFunction()"><!----></A><H3>
getGeneratorFunction</H3>
<PRE>
public <AHREF="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html"title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</A><B>getGeneratorFunction</B>()</PRE>
public void <B>oneSpanningTree</B>(<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>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>graph</CODE> - <DD><CODE>forceConnected</CODE> - if true, an unconnected graph is made connected<DD><CODE>forceSimple</CODE> - if true, a non-simple graph is made simple
Calculates one spanning tree of graph, which doesn't have to be but can be minimal
(this is faster than minimal spanning tree, so if you need any spanning tree, use this one)
Self loops and multiple edges are automatically removed!
Also, unconnected graphs are made connected!
<DT><B>Throws:</B>
<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)</DL>
public void <B>getKnightTour</B>(<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>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aGraph</CODE> - <DD><CODE>xDim</CODE> - x dimension of the chessboard<DD><CODE>yDim</CODE> - y dimension of the chessboard<DD><CODE>startVertexValue</CODE> - vertex where the tour will start
<DT><B>Throws:</B>
<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</DL>
</DD>
</DL>
<HR>
<ANAME="getCostFunction()"><!----></A><H3>
getCostFunction</H3>
<PRE>
public <AHREF="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</A><B>getCostFunction</B>()</PRE>
public void <B>setCostFunction</B>(<AHREF="../../../com/mxgraph/costfunction/mxCostFunction.html"title="class in com.mxgraph.costfunction">mxCostFunction</A> costFunction)</PRE>