blob: 158ca50053dc4b528a521d3a4a412873548309fc [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DirectedGraph (Apache Calcite calcite API)</title>
<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="DirectedGraph (Apache Calcite calcite API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6};
var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],4:["t3","抽象方法"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../../overview-summary.html">概览</a></li>
<li><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../../index-all.html">索引</a></li>
<li><a href="../../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/calcite/util/graph/DepthFirstIterator.html" title="org.apache.calcite.util.graph中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.EdgeFactory.html" title="org.apache.calcite.util.graph中的接口"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/calcite/util/graph/DirectedGraph.html" target="_top">框架</a></li>
<li><a href="DirectedGraph.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">所有类</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>概要:&nbsp;</li>
<li><a href="#nested.class.summary">嵌套</a>&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</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">org.apache.calcite.util.graph</div>
<h2 title="接口 DirectedGraph" class="title">接口 DirectedGraph&lt;V,E&gt;</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">类型参数:</span></dt>
<dd><code>V</code> - Vertex type</dd>
<dd><code>E</code> - Edge type</dd>
</dl>
<dl>
<dt>所有已知实现类:</dt>
<dd><a href="../../../../../org/apache/calcite/util/graph/AttributedDirectedGraph.html" title="org.apache.calcite.util.graph中的类">AttributedDirectedGraph</a>, <a href="../../../../../org/apache/calcite/util/graph/DefaultDirectedGraph.html" title="org.apache.calcite.util.graph中的类">DefaultDirectedGraph</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="typeNameLabel">DirectedGraph&lt;V,E&gt;</span></pre>
<div class="block">Directed graph.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>嵌套类概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="嵌套类概要表, 列表嵌套类和解释">
<caption><span>嵌套类</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">接口和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.EdgeFactory.html" title="org.apache.calcite.util.graph中的接口">DirectedGraph.EdgeFactory</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.EdgeFactory.html" title="DirectedGraph.EdgeFactory中的类型参数">V</a>,<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.EdgeFactory.html" title="DirectedGraph.EdgeFactory中的类型参数">E</a>&gt;</span></code>
<div class="block">Factory for edges.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#addEdge-V-V-">addEdge</a></span>(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;vertex,
<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;targetVertex)</code>
<div class="block">Adds an edge to this graph.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#addVertex-V-">addVertex</a></span>(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;vertex)</code>
<div class="block">Adds a vertex to this graph.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="java.util中的类或接口">Set</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#edgeSet--">edgeSet</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#getEdge-V-V-">getEdge</a></span>(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;source,
<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;target)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#getInwardEdges-V-">getInwardEdges</a></span>(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;vertex)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#getOutwardEdges-V-">getOutwardEdges</a></span>(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;source)</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#removeAllVertices-java.util.Collection-">removeAllVertices</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="java.util中的类或接口">Collection</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&gt;&nbsp;collection)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#removeEdge-V-V-">removeEdge</a></span>(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;vertex,
<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;targetVertex)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="java.util中的类或接口">Set</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html#vertexSet--">vertexSet</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>方法详细资料</h3>
<a name="addVertex-java.lang.Object-">
<!-- -->
</a><a name="addVertex-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addVertex</h4>
<pre>boolean&nbsp;addVertex(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;vertex)</pre>
<div class="block">Adds a vertex to this graph.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>vertex</code> - Vertex</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Whether vertex was added</dd>
</dl>
</li>
</ul>
<a name="addEdge-java.lang.Object-java.lang.Object-">
<!-- -->
</a><a name="addEdge-V-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addEdge</h4>
<pre><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a>&nbsp;addEdge(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;vertex,
<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;targetVertex)</pre>
<div class="block">Adds an edge to this graph.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>vertex</code> - Source vertex</dd>
<dd><code>targetVertex</code> - Target vertex</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>New edge, if added, otherwise null</dd>
<dt><span class="throwsLabel">抛出:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="java.lang中的类或接口">IllegalArgumentException</a></code> - if either vertex is not already in graph</dd>
</dl>
</li>
</ul>
<a name="getEdge-java.lang.Object-java.lang.Object-">
<!-- -->
</a><a name="getEdge-V-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEdge</h4>
<pre><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a>&nbsp;getEdge(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;source,
<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;target)</pre>
</li>
</ul>
<a name="removeEdge-java.lang.Object-java.lang.Object-">
<!-- -->
</a><a name="removeEdge-V-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeEdge</h4>
<pre>boolean&nbsp;removeEdge(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;vertex,
<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;targetVertex)</pre>
</li>
</ul>
<a name="vertexSet--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>vertexSet</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="java.util中的类或接口">Set</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&gt;&nbsp;vertexSet()</pre>
</li>
</ul>
<a name="removeAllVertices-java.util.Collection-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAllVertices</h4>
<pre>void&nbsp;removeAllVertices(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="java.util中的类或接口">Collection</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&gt;&nbsp;collection)</pre>
</li>
</ul>
<a name="getOutwardEdges-java.lang.Object-">
<!-- -->
</a><a name="getOutwardEdges-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOutwardEdges</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a>&gt;&nbsp;getOutwardEdges(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;source)</pre>
</li>
</ul>
<a name="getInwardEdges-java.lang.Object-">
<!-- -->
</a><a name="getInwardEdges-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInwardEdges</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a>&gt;&nbsp;getInwardEdges(<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">V</a>&nbsp;vertex)</pre>
</li>
</ul>
<a name="edgeSet--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>edgeSet</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="java.util中的类或接口">Set</a>&lt;<a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.html" title="DirectedGraph中的类型参数">E</a>&gt;&nbsp;edgeSet()</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="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../../overview-summary.html">概览</a></li>
<li><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../../index-all.html">索引</a></li>
<li><a href="../../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/calcite/util/graph/DepthFirstIterator.html" title="org.apache.calcite.util.graph中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../../org/apache/calcite/util/graph/DirectedGraph.EdgeFactory.html" title="org.apache.calcite.util.graph中的接口"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/calcite/util/graph/DirectedGraph.html" target="_top">框架</a></li>
<li><a href="DirectedGraph.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">所有类</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>概要:&nbsp;</li>
<li><a href="#nested.class.summary">嵌套</a>&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &copy; 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p>
</body>
</html>