blob: 0faf52dca82b1bb5579c8a0976c46886b4bb95db [file] [log] [blame]
<!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_162) on Thu Feb 01 21:39:05 KST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DAG (Coral Project 0.1-SNAPSHOT API)</title>
<meta name="date" content="2018-02-01">
<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="DAG (Coral Project 0.1-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"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};
var tabs = {65535:["t0","All 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/DAG.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>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../../../edu/snu/coral/common/dag/DAG.TraversalOrder.html" title="enum in edu.snu.coral.common.dag"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?edu/snu/coral/common/dag/DAG.html" target="_top">Frames</a></li>
<li><a href="DAG.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&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">edu.snu.coral.common.dag</div>
<h2 title="Class DAG" class="title">Class DAG&lt;V extends <a href="../../../../../edu/snu/coral/common/dag/Vertex.html" title="class in edu.snu.coral.common.dag">Vertex</a>,E extends <a href="../../../../../edu/snu/coral/common/dag/Edge.html" title="class in edu.snu.coral.common.dag">Edge</a>&lt;V&gt;&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/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>edu.snu.coral.common.dag.DAG&lt;V,E&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>V</code> - the vertex type</dd>
<dd><code>E</code> - the edge type</dd>
</dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
</dl>
<hr>
<br>
<pre>public final class <span class="typeNameLabel">DAG&lt;V extends <a href="../../../../../edu/snu/coral/common/dag/Vertex.html" title="class in edu.snu.coral.common.dag">Vertex</a>,E extends <a href="../../../../../edu/snu/coral/common/dag/Edge.html" title="class in edu.snu.coral.common.dag">Edge</a>&lt;V&gt;&gt;</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
<div class="block">DAG implementation.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../serialized-form.html#edu.snu.coral.common.dag.DAG">Serialized Form</a></dd>
</dl>
</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>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.TraversalOrder.html" title="enum in edu.snu.coral.common.dag">DAG.TraversalOrder</a></span></code>
<div class="block">Indicates the traversal order of this DAG.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#EMPTY_DAG_DIRECTORY">EMPTY_DAG_DIRECTORY</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== 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">&nbsp;</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="../../../../../edu/snu/coral/common/dag/DAG.html#DAG-java.util.Set-java.util.Map-java.util.Map-java.util.Map-java.util.Map-">DAG</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;vertices,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;&gt;&nbsp;incomingEdges,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;&gt;&nbsp;outgoingEdges,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="../../../../../edu/snu/coral/common/ir/vertex/LoopVertex.html" title="class in edu.snu.coral.common.ir.vertex">LoopVertex</a>&gt;&nbsp;assignedLoopVertexMap,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;loopStackDepthMap)</code>
<div class="block">Constructor of DAG, called by the DAGBuilder.</div>
</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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>&lt;V2 extends <a href="../../../../../edu/snu/coral/common/dag/Vertex.html" title="class in edu.snu.coral.common.dag">Vertex</a>,E2 extends <a href="../../../../../edu/snu/coral/common/dag/Edge.html" title="class in edu.snu.coral.common.dag">Edge</a>&lt;V2&gt;&gt;<br><a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="class in edu.snu.coral.common.dag">DAG</a>&lt;V2,E2&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#convert-java.util.function.Function-">convert</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="class in edu.snu.coral.common.dag">DAG</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;,<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="class in edu.snu.coral.common.dag">DAG</a>&lt;V2,E2&gt;&gt;&nbsp;function)</code>
<div class="block">Converts a DAG into another DAG according to a function.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#filterVertices-java.util.function.Predicate-">filterVertices</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;condition)</code>
<div class="block">Filters the vertices according to the given condition.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getAncestors-java.lang.String-">getAncestors</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</code>
<div class="block">Retrieves the ancestors of a vertex.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../edu/snu/coral/common/ir/vertex/LoopVertex.html" title="class in edu.snu.coral.common.ir.vertex">LoopVertex</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getAssignedLoopVertexOf-V-">getAssignedLoopVertexOf</a></span>(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</code>
<div class="block">Retrieves the wrapping LoopVertex of the vertex.</div>
</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="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getChildren-java.lang.String-">getChildren</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</code>
<div class="block">Retrieves the children vertices of the given vertex.</div>
</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="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getDescendants-java.lang.String-">getDescendants</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</code>
<div class="block">Retrieves the descendants of a vertex.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getEdgeBetween-java.lang.String-java.lang.String-">getEdgeBetween</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;srcVertexId,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstVertexId)</code>
<div class="block">Retrieves the edge between two vertices.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getIncomingEdgesOf-java.lang.String-">getIncomingEdgesOf</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</code>
<div class="block">Retrieves the incoming edges of the given vertex.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getIncomingEdgesOf-V-">getIncomingEdgesOf</a></span>(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</code>
<div class="block">Retrieves the incoming edges of the given vertex.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getLoopStackDepthOf-V-">getLoopStackDepthOf</a></span>(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</code>
<div class="block">Retrieves the stack depth of the given vertex.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getOutgoingEdgesOf-java.lang.String-">getOutgoingEdgesOf</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</code>
<div class="block">Retrieves the outgoing edges of the given vertex.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getOutgoingEdgesOf-V-">getOutgoingEdgesOf</a></span>(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</code>
<div class="block">Retrieves the outgoing edges of the given vertex.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getParents-java.lang.String-">getParents</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</code>
<div class="block">Retrieves the parent vertices of the given vertex.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getRootVertices--">getRootVertices</a></span>()</code>
<div class="block">Retrieves the root vertices of this DAG.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getTopologicalSort--">getTopologicalSort</a></span>()</code>
<div class="block">Gets the DAG's vertices in topologically sorted order.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getVertexById-java.lang.String-">getVertexById</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</code>
<div class="block">Retrieves the vertex given its ID.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#getVertices--">getVertices</a></span>()</code>
<div class="block">Retrieves the vertices of this DAG.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#isCompositeVertex-V-">isCompositeVertex</a></span>(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</code>
<div class="block">Checks whether the given vertex is assigned with a wrapping LoopVertex.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#pathExistsBetween-V-V-">pathExistsBetween</a></span>(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v1,
<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v2)</code>
<div class="block">Function checks whether there is a path between two vertices.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#storeJSON-java.lang.String-java.lang.String-java.lang.String-">storeJSON</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;directory,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;description)</code>
<div class="block">Stores JSON representation of this DAG into a file.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#topologicalDo-java.util.function.Consumer-">topologicalDo</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html?is-external=true" title="class or interface in java.util.function">Consumer</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;function)</code>
<div class="block">Applies the function to each node in the DAG in a topological order.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/snu/coral/common/dag/DAG.html#toString--">toString</a></span>()</code>&nbsp;</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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/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">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="EMPTY_DAG_DIRECTORY">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>EMPTY_DAG_DIRECTORY</h4>
<pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> EMPTY_DAG_DIRECTORY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#edu.snu.coral.common.dag.DAG.EMPTY_DAG_DIRECTORY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DAG-java.util.Set-java.util.Map-java.util.Map-java.util.Map-java.util.Map-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DAG</h4>
<pre>public&nbsp;DAG(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;vertices,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;&gt;&nbsp;incomingEdges,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;&gt;&nbsp;outgoingEdges,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="../../../../../edu/snu/coral/common/ir/vertex/LoopVertex.html" title="class in edu.snu.coral.common.ir.vertex">LoopVertex</a>&gt;&nbsp;assignedLoopVertexMap,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;loopStackDepthMap)</pre>
<div class="block">Constructor of DAG, called by the DAGBuilder.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vertices</code> - set of vertices.</dd>
<dd><code>incomingEdges</code> - map of incoming edges for each vertex.</dd>
<dd><code>outgoingEdges</code> - map of outgoing edges for each vertex.</dd>
<dd><code>assignedLoopVertexMap</code> - map of assignedLoopVertex info.</dd>
<dd><code>loopStackDepthMap</code> - map of stack depth of LoopVertices.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="convert-java.util.function.Function-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>convert</h4>
<pre>public&nbsp;&lt;V2 extends <a href="../../../../../edu/snu/coral/common/dag/Vertex.html" title="class in edu.snu.coral.common.dag">Vertex</a>,E2 extends <a href="../../../../../edu/snu/coral/common/dag/Edge.html" title="class in edu.snu.coral.common.dag">Edge</a>&lt;V2&gt;&gt;&nbsp;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="class in edu.snu.coral.common.dag">DAG</a>&lt;V2,E2&gt;&nbsp;convert(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="class in edu.snu.coral.common.dag">DAG</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>,<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;,<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="class in edu.snu.coral.common.dag">DAG</a>&lt;V2,E2&gt;&gt;&nbsp;function)</pre>
<div class="block">Converts a DAG into another DAG according to a function.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>V2</code> - the converted DAG's vertex type.</dd>
<dd><code>E2</code> - the converted DAG's edge type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>function</code> - to apply when converting a DAG to another.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the converted DAG.</dd>
</dl>
</li>
</ul>
<a name="getVertexById-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVertexById</h4>
<pre>public&nbsp;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;getVertexById(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</pre>
<div class="block">Retrieves the vertex given its ID.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - of the vertex to retrieve</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the vertex</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../edu/snu/coral/common/exception/IllegalVertexOperationException.html" title="class in edu.snu.coral.common.exception">IllegalVertexOperationException</a></code> - when the requested vertex does not exist.</dd>
</dl>
</li>
</ul>
<a name="getVertices--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVertices</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;getVertices()</pre>
<div class="block">Retrieves the vertices of this DAG.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of vertices.
Note that the result is never null, ensured by <a href="../../../../../edu/snu/coral/common/dag/DAGBuilder.html" title="class in edu.snu.coral.common.dag"><code>DAGBuilder</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getRootVertices--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRootVertices</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;getRootVertices()</pre>
<div class="block">Retrieves the root vertices of this DAG.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of root vertices.</dd>
</dl>
</li>
</ul>
<a name="getIncomingEdgesOf-edu.snu.coral.common.dag.Vertex-">
<!-- -->
</a><a name="getIncomingEdgesOf-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIncomingEdgesOf</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;&nbsp;getIncomingEdgesOf(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</pre>
<div class="block">Retrieves the incoming edges of the given vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - the subject vertex.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of incoming edges to the vertex.
Note that the result is never null, ensured by <a href="../../../../../edu/snu/coral/common/dag/DAGBuilder.html" title="class in edu.snu.coral.common.dag"><code>DAGBuilder</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getIncomingEdgesOf-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIncomingEdgesOf</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;&nbsp;getIncomingEdgesOf(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</pre>
<div class="block">Retrieves the incoming edges of the given vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vertexId</code> - the ID of the subject vertex.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of incoming edges to the vertex.
Note that the result is never null, ensured by <a href="../../../../../edu/snu/coral/common/dag/DAGBuilder.html" title="class in edu.snu.coral.common.dag"><code>DAGBuilder</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getOutgoingEdgesOf-edu.snu.coral.common.dag.Vertex-">
<!-- -->
</a><a name="getOutgoingEdgesOf-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOutgoingEdgesOf</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;&nbsp;getOutgoingEdgesOf(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</pre>
<div class="block">Retrieves the outgoing edges of the given vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - the subject vertex.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of outgoing edges to the vertex.
Note that the result is never null, ensured by <a href="../../../../../edu/snu/coral/common/dag/DAGBuilder.html" title="class in edu.snu.coral.common.dag"><code>DAGBuilder</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getOutgoingEdgesOf-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOutgoingEdgesOf</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&gt;&nbsp;getOutgoingEdgesOf(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</pre>
<div class="block">Retrieves the outgoing edges of the given vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vertexId</code> - the ID of the subject vertex.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of outgoing edges to the vertex.
Note that the result is never null, ensured by <a href="../../../../../edu/snu/coral/common/dag/DAGBuilder.html" title="class in edu.snu.coral.common.dag"><code>DAGBuilder</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getParents-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParents</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;getParents(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</pre>
<div class="block">Retrieves the parent vertices of the given vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vertexId</code> - the ID of the subject vertex.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the list of parent vertices.</dd>
</dl>
</li>
</ul>
<a name="getChildren-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChildren</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;getChildren(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</pre>
<div class="block">Retrieves the children vertices of the given vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vertexId</code> - the ID of the subject vertex.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the list of children vertices.</dd>
</dl>
</li>
</ul>
<a name="getEdgeBetween-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEdgeBetween</h4>
<pre>public&nbsp;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">E</a>&nbsp;getEdgeBetween(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;srcVertexId,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dstVertexId)
throws <a href="../../../../../edu/snu/coral/common/exception/IllegalEdgeOperationException.html" title="class in edu.snu.coral.common.exception">IllegalEdgeOperationException</a></pre>
<div class="block">Retrieves the edge between two vertices.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcVertexId</code> - the ID of the source vertex.</dd>
<dd><code>dstVertexId</code> - the ID of the destination vertex.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the edge if exists.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../edu/snu/coral/common/exception/IllegalEdgeOperationException.html" title="class in edu.snu.coral.common.exception">IllegalEdgeOperationException</a></code> - otherwise.</dd>
</dl>
</li>
</ul>
<a name="getTopologicalSort--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTopologicalSort</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;getTopologicalSort()</pre>
<div class="block">Gets the DAG's vertices in topologically sorted order.
This function brings consistent results.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the sorted list of vertices in topological order.</dd>
</dl>
</li>
</ul>
<a name="getAncestors-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAncestors</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;getAncestors(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</pre>
<div class="block">Retrieves the ancestors of a vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vertexId</code> - to find the ancestors for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the list of ancestors.</dd>
</dl>
</li>
</ul>
<a name="getDescendants-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDescendants</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;getDescendants(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;vertexId)</pre>
<div class="block">Retrieves the descendants of a vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vertexId</code> - to find the descendants for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the list of descendants.</dd>
</dl>
</li>
</ul>
<a name="filterVertices-java.util.function.Predicate-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>filterVertices</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;filterVertices(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;condition)</pre>
<div class="block">Filters the vertices according to the given condition.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>condition</code> - that must be satisfied to be included in the filtered list.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the list of vertices that meet the condition.</dd>
</dl>
</li>
</ul>
<a name="topologicalDo-java.util.function.Consumer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>topologicalDo</h4>
<pre>public&nbsp;void&nbsp;topologicalDo(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html?is-external=true" title="class or interface in java.util.function">Consumer</a>&lt;<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&gt;&nbsp;function)</pre>
<div class="block">Applies the function to each node in the DAG in a topological order.
This function brings consistent results.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>function</code> - to apply.</dd>
</dl>
</li>
</ul>
<a name="pathExistsBetween-edu.snu.coral.common.dag.Vertex-edu.snu.coral.common.dag.Vertex-">
<!-- -->
</a><a name="pathExistsBetween-V-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pathExistsBetween</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;pathExistsBetween(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v1,
<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v2)</pre>
<div class="block">Function checks whether there is a path between two vertices.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v1</code> - First vertex to check.</dd>
<dd><code>v2</code> - Second vertex to check.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether or not there is a path between two vertices.</dd>
</dl>
</li>
</ul>
<a name="isCompositeVertex-edu.snu.coral.common.dag.Vertex-">
<!-- -->
</a><a name="isCompositeVertex-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCompositeVertex</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;isCompositeVertex(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</pre>
<div class="block">Checks whether the given vertex is assigned with a wrapping LoopVertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - Vertex to check.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>whether or not it is wrapped by a LoopVertex</dd>
</dl>
</li>
</ul>
<a name="getAssignedLoopVertexOf-edu.snu.coral.common.dag.Vertex-">
<!-- -->
</a><a name="getAssignedLoopVertexOf-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAssignedLoopVertexOf</h4>
<pre>public&nbsp;<a href="../../../../../edu/snu/coral/common/ir/vertex/LoopVertex.html" title="class in edu.snu.coral.common.ir.vertex">LoopVertex</a>&nbsp;getAssignedLoopVertexOf(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</pre>
<div class="block">Retrieves the wrapping LoopVertex of the vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - Vertex to check.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The wrapping LoopVertex.</dd>
</dl>
</li>
</ul>
<a name="getLoopStackDepthOf-edu.snu.coral.common.dag.Vertex-">
<!-- -->
</a><a name="getLoopStackDepthOf-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLoopStackDepthOf</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;getLoopStackDepthOf(<a href="../../../../../edu/snu/coral/common/dag/DAG.html" title="type parameter in DAG">V</a>&nbsp;v)</pre>
<div class="block">Retrieves the stack depth of the given vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - Vertex to check.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The depth of the stack of LoopVertices for the vertex.</dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="storeJSON-java.lang.String-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>storeJSON</h4>
<pre>public&nbsp;void&nbsp;storeJSON(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;directory,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;description)</pre>
<div class="block">Stores JSON representation of this DAG into a file.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>directory</code> - the directory which JSON representation is saved to</dd>
<dd><code>name</code> - name of this DAG</dd>
<dd><code>description</code> - description of this DAG</dd>
</dl>
</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/DAG.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>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../../../edu/snu/coral/common/dag/DAG.TraversalOrder.html" title="enum in edu.snu.coral.common.dag"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?edu/snu/coral/common/dag/DAG.html" target="_top">Frames</a></li>
<li><a href="DAG.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&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>Copyright &#169; 2018. All rights reserved.</small></p>
</body>
</html>