maxGraph/java/docs/com/mxgraph/analysis/mxGraphGenerator.html

848 lines
50 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Mon Jan 05 08:57:41 EST 2015 -->
<title>mxGraphGenerator (mxGraph 3.1.2.1 API Specification)</title>
<meta name="date" content="2015-01-05">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="mxGraphGenerator (mxGraph 3.1.2.1 API Specification)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxGraphGenerator.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><p><b>mxGraph 3.1.2.1</b></p></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/mxgraph/analysis/mxGraphAnalysis.html" title="class in com.mxgraph.analysis"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/mxgraph/analysis/mxGraphProperties.html" title="class in com.mxgraph.analysis"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/mxgraph/analysis/mxGraphGenerator.html" target="_top">Frames</a></li>
<li><a href="mxGraphGenerator.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.mxgraph.analysis</div>
<h2 title="Class mxGraphGenerator" class="title">Class mxGraphGenerator</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="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>
<li>
<ul class="inheritance">
<li>com.mxgraph.analysis.mxGraphGenerator</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">mxGraphGenerator</span>
extends <a href="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>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#mxGraphGenerator(com.mxgraph.generatorfunction.mxGeneratorFunction, com.mxgraph.costfunction.mxCostFunction)">mxGraphGenerator</a></strong>(<a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a>&nbsp;generatorFunction,
<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a>&nbsp;costFunction)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getBipartiteGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getBipartiteGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVerticesGroup1,
int&nbsp;numVerticesGroup2)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCompleteBipartiteGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getCompleteBipartiteGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVerticesGroup1,
int&nbsp;numVerticesGroup2)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCompleteGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getCompleteGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCostFunction()">getCostFunction</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getFriendshipWindmillGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getFriendshipWindmillGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numBranches,
int&nbsp;branchSize)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGeneratorFunction()">getGeneratorFunction</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGeneratorFunction(com.mxgraph.view.mxGraph, boolean, double, double)">getGeneratorFunction</a></strong>(<a href="../../../com/mxgraph/view/mxGraph.html" title="class in com.mxgraph.view">mxGraph</a>&nbsp;graph,
boolean&nbsp;weighted,
double&nbsp;minWeight,
double&nbsp;maxWeight)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGridGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getGridGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numColumns,
int&nbsp;numRows)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKingGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getKingGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="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>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKingMoveVertexes(com.mxgraph.analysis.mxAnalysisGraph, int, int, int, int)">getKingMoveVertexes</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim,
int&nbsp;xCoord,
int&nbsp;yCoord)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getKnightGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="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>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightMoveVertexes(com.mxgraph.analysis.mxAnalysisGraph, int, int, int, int)">getKnightMoveVertexes</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim,
int&nbsp;xCoord,
int&nbsp;yCoord)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightTour(com.mxgraph.analysis.mxAnalysisGraph, int, int, int)">getKnightTour</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim,
int&nbsp;startVertexValue)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="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>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getNewEdgeValue(com.mxgraph.analysis.mxAnalysisGraph)">getNewEdgeValue</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph)</code>
<div class="block">Creates a new edge value based on graph properties in mxAnalysisGraph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getNullGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getNullGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getPathGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getPathGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getPetersenGraph(com.mxgraph.analysis.mxAnalysisGraph)">getPetersenGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getRandomInt(int, int)">getRandomInt</a></strong>(int&nbsp;minValue,
int&nbsp;maxValue)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getSimpleRandomGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int, boolean, boolean, boolean)">getSimpleRandomGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numNodes,
int&nbsp;numEdges,
boolean&nbsp;allowSelfLoops,
boolean&nbsp;allowMultipleEdges,
boolean&nbsp;forceConnected)</code>
<div class="block">Generates a random graph</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getSimpleRandomTree(com.mxgraph.analysis.mxAnalysisGraph, int)">getSimpleRandomTree</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;vertexCount)</code>
<div class="block">Generates a random tree graph</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getStarGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getStarGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int[]</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getVertexGridCoords(int, int, int)">getVertexGridCoords</a></strong>(int&nbsp;xDim,
int&nbsp;yDim,
int&nbsp;value)</code>
<div class="block">use this only with the grid graph, and various chess-board graphs, because of vertex ordering</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getWheelGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">getWheelGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getWindmillGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">getWindmillGraph</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numBranches,
int&nbsp;branchSize)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#oneSpanningTree(com.mxgraph.analysis.mxAnalysisGraph, boolean, boolean)">oneSpanningTree</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
boolean&nbsp;forceConnected,
boolean&nbsp;forceSimple)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setBipartiteGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, int, int, double, double)">setBipartiteGraphSpacing</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVerticesGroup1,
int&nbsp;numVerticesGroup2,
double&nbsp;vertexSpacing,
double&nbsp;groupSpacing)</code>
<div class="block">Sets the physical spacing between vertices in a bipartite graph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setCostFunction(com.mxgraph.costfunction.mxCostFunction)">setCostFunction</a></strong>(<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a>&nbsp;costFunction)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setGridGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, double, double, int, int)">setGridGraphSpacing</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
double&nbsp;xSpacing,
double&nbsp;ySpacing,
int&nbsp;numColumns,
int&nbsp;numRows)</code>
<div class="block">Sets the physical spacing between vertices in a grid graph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setPathGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, double)">setPathGraphSpacing</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
double&nbsp;spacing)</code>
<div class="block">Sets the physical spacing between vertices in a path graph.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setStarGraphLayout(com.mxgraph.analysis.mxAnalysisGraph, double)">setStarGraphLayout</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
double&nbsp;graphSize)</code>
<div class="block">Sets the physical size of a star graph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setWindmillGraphLayout(com.mxgraph.analysis.mxAnalysisGraph, int, int, double)">setWindmillGraphLayout</a></strong>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numBranches,
int&nbsp;numVerticesInBranch,
double&nbsp;graphSize)</code>
<div class="block">Sets the layout of a windmill graph.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="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><a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="mxGraphGenerator(com.mxgraph.generatorfunction.mxGeneratorFunction, com.mxgraph.costfunction.mxCostFunction)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>mxGraphGenerator</h4>
<pre>public&nbsp;mxGraphGenerator(<a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a>&nbsp;generatorFunction,
<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a>&nbsp;costFunction)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getNullGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNullGraph</h4>
<pre>public&nbsp;void&nbsp;getNullGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVertexes</code> - </dd></dl>
</li>
</ul>
<a name="getCompleteGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCompleteGraph</h4>
<pre>public&nbsp;void&nbsp;getCompleteGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVertices</code> - number of vertices</dd></dl>
</li>
</ul>
<a name="getGridGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGridGraph</h4>
<pre>public&nbsp;void&nbsp;getGridGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numColumns,
int&nbsp;numRows)</pre>
<dl><dt><span class="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>
</li>
</ul>
<a name="setGridGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, double, double, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setGridGraphSpacing</h4>
<pre>public&nbsp;void&nbsp;setGridGraphSpacing(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
double&nbsp;xSpacing,
double&nbsp;ySpacing,
int&nbsp;numColumns,
int&nbsp;numRows)</pre>
<div class="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><span class="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>
</li>
</ul>
<a name="getBipartiteGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBipartiteGraph</h4>
<pre>public&nbsp;void&nbsp;getBipartiteGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVerticesGroup1,
int&nbsp;numVerticesGroup2)</pre>
<dl><dt><span class="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>
</li>
</ul>
<a name="setBipartiteGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, int, int, double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBipartiteGraphSpacing</h4>
<pre>public&nbsp;void&nbsp;setBipartiteGraphSpacing(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVerticesGroup1,
int&nbsp;numVerticesGroup2,
double&nbsp;vertexSpacing,
double&nbsp;groupSpacing)</pre>
<div class="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><span class="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>
</li>
</ul>
<a name="getCompleteBipartiteGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCompleteBipartiteGraph</h4>
<pre>public&nbsp;void&nbsp;getCompleteBipartiteGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVerticesGroup1,
int&nbsp;numVerticesGroup2)</pre>
<dl><dt><span class="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>
</li>
</ul>
<a name="getKnightGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKnightGraph</h4>
<pre>public&nbsp;void&nbsp;getKnightGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>xDim</code> - </dd><dd><code>yDim</code> - </dd></dl>
</li>
</ul>
<a name="getKnightMoveVertexes(com.mxgraph.analysis.mxAnalysisGraph, int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKnightMoveVertexes</h4>
<pre>public&nbsp;<a href="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>[]&nbsp;getKnightMoveVertexes(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim,
int&nbsp;xCoord,
int&nbsp;yCoord)</pre>
<dl><dt><span class="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><span class="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>
</li>
</ul>
<a name="getVertexGridCoords(int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVertexGridCoords</h4>
<pre>public&nbsp;int[]&nbsp;getVertexGridCoords(int&nbsp;xDim,
int&nbsp;yDim,
int&nbsp;value)</pre>
<div class="block">use this only with the grid graph, and various chess-board graphs, because of vertex ordering</div>
<dl><dt><span class="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><span class="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>
</li>
</ul>
<a name="getKingGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKingGraph</h4>
<pre>public&nbsp;void&nbsp;getKingGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim)</pre>
<dl><dt><span class="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>
Note that the minimum size is 4x4</dd></dl>
</li>
</ul>
<a name="getKingMoveVertexes(com.mxgraph.analysis.mxAnalysisGraph, int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKingMoveVertexes</h4>
<pre>public&nbsp;<a href="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>[]&nbsp;getKingMoveVertexes(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim,
int&nbsp;xCoord,
int&nbsp;yCoord)</pre>
<dl><dt><span class="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><span class="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>
</li>
</ul>
<a name="getPetersenGraph(com.mxgraph.analysis.mxAnalysisGraph)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPetersenGraph</h4>
<pre>public&nbsp;void&nbsp;getPetersenGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - Returns a Petersen graph</dd></dl>
</li>
</ul>
<a name="getPathGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPathGraph</h4>
<pre>public&nbsp;void&nbsp;getPathGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVertices</code> - Returns a path graph</dd></dl>
</li>
</ul>
<a name="setPathGraphSpacing(com.mxgraph.analysis.mxAnalysisGraph, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPathGraphSpacing</h4>
<pre>public&nbsp;void&nbsp;setPathGraphSpacing(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
double&nbsp;spacing)</pre>
<div class="block">Sets the physical spacing between vertices in a path graph. This works for now only for a graph generated with mxGraphCreator.getPathGraph()
only after creating the graph</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>spacing</code> - </dd></dl>
</li>
</ul>
<a name="getStarGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStarGraph</h4>
<pre>public&nbsp;void&nbsp;getStarGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numVertices</code> - Returns a star graph
Note that minimum vertex number is 4</dd></dl>
</li>
</ul>
<a name="setStarGraphLayout(com.mxgraph.analysis.mxAnalysisGraph, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStarGraphLayout</h4>
<pre>public&nbsp;void&nbsp;setStarGraphLayout(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
double&nbsp;graphSize)</pre>
<div class="block">Sets the physical size of a star graph. This works for now only for a graph generated with mxGraphCreator.getStarGraph() and getWheelGraph()</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>graphSize</code> - </dd></dl>
</li>
</ul>
<a name="getWheelGraph(com.mxgraph.analysis.mxAnalysisGraph, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWheelGraph</h4>
<pre>public&nbsp;void&nbsp;getWheelGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numVertices)</pre>
<dl><dt><span class="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>
</li>
</ul>
<a name="getFriendshipWindmillGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFriendshipWindmillGraph</h4>
<pre>public&nbsp;void&nbsp;getFriendshipWindmillGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numBranches,
int&nbsp;branchSize)</pre>
<dl><dt><span class="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>
</li>
</ul>
<a name="getWindmillGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWindmillGraph</h4>
<pre>public&nbsp;void&nbsp;getWindmillGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numBranches,
int&nbsp;branchSize)</pre>
<dl><dt><span class="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 windmill graph</dd></dl>
</li>
</ul>
<a name="setWindmillGraphLayout(com.mxgraph.analysis.mxAnalysisGraph, int, int, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWindmillGraphLayout</h4>
<pre>public&nbsp;void&nbsp;setWindmillGraphLayout(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numBranches,
int&nbsp;numVerticesInBranch,
double&nbsp;graphSize)</pre>
<div class="block">Sets the layout of a windmill graph. Use this method only for graphs generated with mxGraphGenerator.getWindmillGraph() and getFriendshitWindmillGraph()</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>numBranches</code> - </dd><dd><code>numVerticesInBranch</code> - </dd><dd><code>graphSize</code> - </dd></dl>
</li>
</ul>
<a name="getSimpleRandomGraph(com.mxgraph.analysis.mxAnalysisGraph, int, int, boolean, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSimpleRandomGraph</h4>
<pre>public&nbsp;void&nbsp;getSimpleRandomGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;numNodes,
int&nbsp;numEdges,
boolean&nbsp;allowSelfLoops,
boolean&nbsp;allowMultipleEdges,
boolean&nbsp;forceConnected)</pre>
<div class="block">Generates a random graph</div>
<dl><dt><span class="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>
</li>
</ul>
<a name="getSimpleRandomTree(com.mxgraph.analysis.mxAnalysisGraph, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSimpleRandomTree</h4>
<pre>public&nbsp;void&nbsp;getSimpleRandomTree(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;vertexCount)</pre>
<div class="block">Generates a random tree graph</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd><dd><code>vertexCount</code> - </dd></dl>
</li>
</ul>
<a name="getNewEdgeValue(com.mxgraph.analysis.mxAnalysisGraph)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNewEdgeValue</h4>
<pre>public&nbsp;<a href="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>&nbsp;getNewEdgeValue(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph)</pre>
<div class="block">Creates a new edge value based on graph properties in mxAnalysisGraph. Used mostly when creating new edges during graph generation.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aGraph</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
</li>
</ul>
<a name="getGeneratorFunction(com.mxgraph.view.mxGraph, boolean, double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGeneratorFunction</h4>
<pre>public static&nbsp;<a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a>&nbsp;getGeneratorFunction(<a href="../../../com/mxgraph/view/mxGraph.html" title="class in com.mxgraph.view">mxGraph</a>&nbsp;graph,
boolean&nbsp;weighted,
double&nbsp;minWeight,
double&nbsp;maxWeight)</pre>
<dl><dt><span class="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>
<dt><span class="strong">Returns:</span></dt><dd>a generator function</dd></dl>
</li>
</ul>
<a name="getGeneratorFunction()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGeneratorFunction</h4>
<pre>public&nbsp;<a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a>&nbsp;getGeneratorFunction()</pre>
</li>
</ul>
<a name="getRandomInt(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRandomInt</h4>
<pre>public&nbsp;int&nbsp;getRandomInt(int&nbsp;minValue,
int&nbsp;maxValue)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>minValue</code> - </dd><dd><code>maxValue</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>a random integer in the interval [minValue, maxValue]</dd></dl>
</li>
</ul>
<a name="oneSpanningTree(com.mxgraph.analysis.mxAnalysisGraph, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>oneSpanningTree</h4>
<pre>public&nbsp;void&nbsp;oneSpanningTree(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
boolean&nbsp;forceConnected,
boolean&nbsp;forceSimple)
throws <a href="../../../com/mxgraph/analysis/StructuralException.html" title="class in com.mxgraph.analysis">StructuralException</a></pre>
<dl><dt><span class="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
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!</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../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>
</li>
</ul>
<a name="getKnightTour(com.mxgraph.analysis.mxAnalysisGraph, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKnightTour</h4>
<pre>public&nbsp;void&nbsp;getKnightTour(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a>&nbsp;aGraph,
int&nbsp;xDim,
int&nbsp;yDim,
int&nbsp;startVertexValue)
throws <a href="../../../com/mxgraph/analysis/StructuralException.html" title="class in com.mxgraph.analysis">StructuralException</a></pre>
<dl><dt><span class="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><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../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>
<a name="getCostFunction()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCostFunction</h4>
<pre>public&nbsp;<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a>&nbsp;getCostFunction()</pre>
</li>
</ul>
<a name="setCostFunction(com.mxgraph.costfunction.mxCostFunction)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setCostFunction</h4>
<pre>public&nbsp;void&nbsp;setCostFunction(<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a>&nbsp;costFunction)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxGraphGenerator.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><p><b>mxGraph 3.1.2.1</b></p></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/mxgraph/analysis/mxGraphAnalysis.html" title="class in com.mxgraph.analysis"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/mxgraph/analysis/mxGraphProperties.html" title="class in com.mxgraph.analysis"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/mxgraph/analysis/mxGraphGenerator.html" target="_top">Frames</a></li>
<li><a href="mxGraphGenerator.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><font size=1>Copyright (c) 2010 <a href="http://www.mxgraph.com/"
target="_blank">Gaudenz Alder, David Benson</a>. All rights reserved.</font></small></p>
</body>
</html>