1009 lines
52 KiB
HTML
1009 lines
52 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 (1.8.0_131) on Mon Aug 28 09:50:46 UTC 2017 -->
|
|
<title>mxGraphGenerator (mxGraph 3.7.5 API Specification)</title>
|
|
<meta name="date" content="2017-08-28">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="mxGraphGenerator (mxGraph 3.7.5 API Specification)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":9,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10};
|
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<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"><p><b>mxGraph 3.7.5</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/analysis/mxGraphAnalysis.html" title="class in com.mxgraph.analysis"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/analysis/mxGraphProperties.html" title="class in com.mxgraph.analysis"><span class="typeNameLink">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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </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://docs.oracle.com/javase/7/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="typeNameLabel">mxGraphGenerator</span>
|
|
extends <a href="http://docs.oracle.com/javase/7/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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#mxGraphGenerator-com.mxgraph.generatorfunction.mxGeneratorFunction-com.mxgraph.costfunction.mxCostFunction-">mxGraphGenerator</a></span>(<a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a> generatorFunction,
|
|
<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a> costFunction)</code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getBipartiteGraph-com.mxgraph.analysis.mxAnalysisGraph-int-int-">getBipartiteGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVerticesGroup1,
|
|
int numVerticesGroup2)</code> </td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCompleteBipartiteGraph-com.mxgraph.analysis.mxAnalysisGraph-int-int-">getCompleteBipartiteGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVerticesGroup1,
|
|
int numVerticesGroup2)</code> </td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCompleteGraph-com.mxgraph.analysis.mxAnalysisGraph-int-">getCompleteGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</code> </td>
|
|
</tr>
|
|
<tr id="i3" 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><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getCostFunction--">getCostFunction</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getFriendshipWindmillGraph-com.mxgraph.analysis.mxAnalysisGraph-int-int-">getFriendshipWindmillGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numBranches,
|
|
int branchSize)</code> </td>
|
|
</tr>
|
|
<tr id="i5" 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><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGeneratorFunction--">getGeneratorFunction</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i6" 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><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGeneratorFunction-com.mxgraph.view.mxGraph-boolean-double-double-">getGeneratorFunction</a></span>(<a href="../../../com/mxgraph/view/mxGraph.html" title="class in com.mxgraph.view">mxGraph</a> graph,
|
|
boolean weighted,
|
|
double minWeight,
|
|
double maxWeight)</code> </td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getGridGraph-com.mxgraph.analysis.mxAnalysisGraph-int-int-">getGridGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numColumns,
|
|
int numRows)</code> </td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKingGraph-com.mxgraph.analysis.mxAnalysisGraph-int-int-">getKingGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int xDim,
|
|
int yDim)</code> </td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKingMoveVertexes-com.mxgraph.analysis.mxAnalysisGraph-int-int-int-int-">getKingMoveVertexes</a></span>(<a href="../../../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>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightGraph-com.mxgraph.analysis.mxAnalysisGraph-int-int-">getKnightGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int xDim,
|
|
int yDim)</code> </td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightMoveVertexes-com.mxgraph.analysis.mxAnalysisGraph-int-int-int-int-">getKnightMoveVertexes</a></span>(<a href="../../../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>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getKnightTour-com.mxgraph.analysis.mxAnalysisGraph-int-int-int-">getKnightTour</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int xDim,
|
|
int yDim,
|
|
int startVertexValue)</code> </td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getNewEdgeValue-com.mxgraph.analysis.mxAnalysisGraph-">getNewEdgeValue</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph)</code>
|
|
<div class="block">Creates a new edge value based on graph properties in mxAnalysisGraph.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getNullGraph-com.mxgraph.analysis.mxAnalysisGraph-int-">getNullGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</code> </td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getPathGraph-com.mxgraph.analysis.mxAnalysisGraph-int-">getPathGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</code> </td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getPetersenGraph-com.mxgraph.analysis.mxAnalysisGraph-">getPetersenGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph)</code> </td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getRandomInt-int-int-">getRandomInt</a></span>(int minValue,
|
|
int maxValue)</code> </td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getSimpleRandomGraph-com.mxgraph.analysis.mxAnalysisGraph-int-int-boolean-boolean-boolean-">getSimpleRandomGraph</a></span>(<a href="../../../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>
|
|
<div class="block">Generates a random graph</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getSimpleRandomTree-com.mxgraph.analysis.mxAnalysisGraph-int-">getSimpleRandomTree</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int vertexCount)</code>
|
|
<div class="block">Generates a random tree graph</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getStarGraph-com.mxgraph.analysis.mxAnalysisGraph-int-">getStarGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</code> </td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>int[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getVertexGridCoords-int-int-int-">getVertexGridCoords</a></span>(int xDim,
|
|
int yDim,
|
|
int 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 id="i22" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getWheelGraph-com.mxgraph.analysis.mxAnalysisGraph-int-">getWheelGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</code> </td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#getWindmillGraph-com.mxgraph.analysis.mxAnalysisGraph-int-int-">getWindmillGraph</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numBranches,
|
|
int branchSize)</code> </td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#oneSpanningTree-com.mxgraph.analysis.mxAnalysisGraph-boolean-boolean-">oneSpanningTree</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
boolean forceConnected,
|
|
boolean forceSimple)</code> </td>
|
|
</tr>
|
|
<tr id="i25" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setBipartiteGraphSpacing-com.mxgraph.analysis.mxAnalysisGraph-int-int-double-double-">setBipartiteGraphSpacing</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVerticesGroup1,
|
|
int numVerticesGroup2,
|
|
double vertexSpacing,
|
|
double groupSpacing)</code>
|
|
<div class="block">Sets the physical spacing between vertices in a bipartite graph.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setCostFunction-com.mxgraph.costfunction.mxCostFunction-">setCostFunction</a></span>(<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a> costFunction)</code> </td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setGridGraphSpacing-com.mxgraph.analysis.mxAnalysisGraph-double-double-int-int-">setGridGraphSpacing</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
double xSpacing,
|
|
double ySpacing,
|
|
int numColumns,
|
|
int numRows)</code>
|
|
<div class="block">Sets the physical spacing between vertices in a grid graph.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setPathGraphSpacing-com.mxgraph.analysis.mxAnalysisGraph-double-">setPathGraphSpacing</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
double spacing)</code>
|
|
<div class="block">Sets the physical spacing between vertices in a path graph.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setStarGraphLayout-com.mxgraph.analysis.mxAnalysisGraph-double-">setStarGraphLayout</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
double graphSize)</code>
|
|
<div class="block">Sets the physical size of a star graph.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/analysis/mxGraphGenerator.html#setWindmillGraphLayout-com.mxgraph.analysis.mxAnalysisGraph-int-int-double-">setWindmillGraphLayout</a></span>(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numBranches,
|
|
int numVerticesInBranch,
|
|
double 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 java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/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://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/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 mxGraphGenerator(<a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a> generatorFunction,
|
|
<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a> 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 void getNullGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void getCompleteGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void getGridGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numColumns,
|
|
int numRows)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void setGridGraphSpacing(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
double xSpacing,
|
|
double ySpacing,
|
|
int numColumns,
|
|
int 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="paramLabel">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 void getBipartiteGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVerticesGroup1,
|
|
int numVerticesGroup2)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void setBipartiteGraphSpacing(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVerticesGroup1,
|
|
int numVerticesGroup2,
|
|
double vertexSpacing,
|
|
double 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="paramLabel">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 void getCompleteBipartiteGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVerticesGroup1,
|
|
int numVerticesGroup2)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void getKnightGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int xDim,
|
|
int yDim)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] getKnightMoveVertexes(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int xDim,
|
|
int yDim,
|
|
int xCoord,
|
|
int yCoord)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">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 int[] getVertexGridCoords(int xDim,
|
|
int yDim,
|
|
int 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="paramLabel">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="returnLabel">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 void getKingGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int xDim,
|
|
int yDim)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] getKingMoveVertexes(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int xDim,
|
|
int yDim,
|
|
int xCoord,
|
|
int yCoord)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">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 void getPetersenGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void getPathGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void setPathGraphSpacing(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
double 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="paramLabel">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 void getStarGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void setStarGraphLayout(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
double 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="paramLabel">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 void getWheelGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numVertices)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void getFriendshipWindmillGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numBranches,
|
|
int branchSize)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void getWindmillGraph(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numBranches,
|
|
int branchSize)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void setWindmillGraphLayout(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int numBranches,
|
|
int numVerticesInBranch,
|
|
double 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="paramLabel">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 void getSimpleRandomGraph(<a href="../../../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>
|
|
<div class="block">Generates a random graph</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 void getSimpleRandomTree(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int vertexCount)</pre>
|
|
<div class="block">Generates a random tree graph</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a> getNewEdgeValue(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>aGraph</code> - </dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
</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 <a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a> getGeneratorFunction(<a href="../../../com/mxgraph/view/mxGraph.html" title="class in com.mxgraph.view">mxGraph</a> graph,
|
|
boolean weighted,
|
|
double minWeight,
|
|
double maxWeight)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">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 <a href="../../../com/mxgraph/generatorfunction/mxGeneratorFunction.html" title="class in com.mxgraph.generatorfunction">mxGeneratorFunction</a> getGeneratorFunction()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRandomInt-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRandomInt</h4>
|
|
<pre>public int getRandomInt(int minValue,
|
|
int maxValue)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>minValue</code> - </dd>
|
|
<dd><code>maxValue</code> - </dd>
|
|
<dt><span class="returnLabel">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 void oneSpanningTree(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
boolean forceConnected,
|
|
boolean forceSimple)
|
|
throws <a href="../../../com/mxgraph/analysis/StructuralException.html" title="class in com.mxgraph.analysis">StructuralException</a></pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="throwsLabel">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 void getKnightTour(<a href="../../../com/mxgraph/analysis/mxAnalysisGraph.html" title="class in com.mxgraph.analysis">mxAnalysisGraph</a> aGraph,
|
|
int xDim,
|
|
int yDim,
|
|
int startVertexValue)
|
|
throws <a href="../../../com/mxgraph/analysis/StructuralException.html" title="class in com.mxgraph.analysis">StructuralException</a></pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="throwsLabel">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 <a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a> getCostFunction()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setCostFunction-com.mxgraph.costfunction.mxCostFunction-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>setCostFunction</h4>
|
|
<pre>public void setCostFunction(<a href="../../../com/mxgraph/costfunction/mxCostFunction.html" title="class in com.mxgraph.costfunction">mxCostFunction</a> 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>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<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"><p><b>mxGraph 3.7.5</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/analysis/mxGraphAnalysis.html" title="class in com.mxgraph.analysis"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/analysis/mxGraphProperties.html" title="class in com.mxgraph.analysis"><span class="typeNameLink">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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </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-2017 <a href="http://www.jgraph.com/"
|
|
target="_blank">Gaudenz Alder, JGraph Ltd</a>. All rights reserved.</font></small></p>
|
|
</body>
|
|
</html>
|