Estructuras_de_Datos/doc/cl/cromer/estructuras/Grafo.Dirigido.html
2016-07-11 01:24:18 -04:00

944 lines
48 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="es">
<head>
<!-- Generated by javadoc (1.8.0_92) on Mon Jul 11 02:23:29 CLT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title>Grafo.Dirigido</title>
<meta name="date" content="2016-07-11">
<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="Grafo.Dirigido";
}
}
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,"i22":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="../../../cl/cromer/estructuras/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Grafo.Dirigido.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-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../cl/cromer/estructuras/Grafo.DFSVisitor.html" title="interface in cl.cromer.estructuras"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?cl/cromer/estructuras/Grafo.Dirigido.html" target="_top">Frames</a></li>
<li><a href="Grafo.Dirigido.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>Nested&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">cl.cromer.estructuras</div>
<h2 title="Class Grafo.Dirigido" class="title">Class Grafo.Dirigido&lt;T&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>cl.cromer.estructuras.Grafo.Dirigido&lt;T&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Enclosing class:</dt>
<dd><a href="../../../cl/cromer/estructuras/Grafo.html" title="class in cl.cromer.estructuras">Grafo</a></dd>
</dl>
<hr>
<br>
<pre>public static final class <span class="typeNameLabel">Grafo.Dirigido&lt;T&gt;</span>
extends java.lang.Object</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== 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>private java.util.List&lt;<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#edges">edges</a></span></code>
<div class="block">Vector of edges in the graph</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#rootVertex">rootVertex</a></span></code>
<div class="block">The vertex identified as the root of the graph</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.util.List&lt;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#verticies">verticies</a></span></code>
<div class="block">Vector of graph verticies</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#VISIT_COLOR_BLACK">VISIT_COLOR_BLACK</a></span></code>
<div class="block">Color used to mark nodes after descendants are completely visited</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#VISIT_COLOR_GREY">VISIT_COLOR_GREY</a></span></code>
<div class="block">Color used to mark nodes as they are first visited in DFS order</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#VISIT_COLOR_WHITE">VISIT_COLOR_WHITE</a></span></code>
<div class="block">Color used to mark unvisited nodes</div>
</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="../../../cl/cromer/estructuras/Grafo.Dirigido.html#Dirigido--">Dirigido</a></span>()</code>
<div class="block">Construct a new graph without any vertices or edges</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>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#addEdge-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.Vertex-int-">addEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;from,
<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;to,
int&nbsp;cost)</code>
<div class="block">Insert a directed, weighted Edge into the 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="../../../cl/cromer/estructuras/Grafo.Dirigido.html#addVertex-cl.cromer.estructuras.Grafo.Vertex-">addVertex</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v)</code>
<div class="block">Add a vertex to the graph</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#breadthFirstSearch-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.Visitor-">breadthFirstSearch</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
<a href="../../../cl/cromer/estructuras/Grafo.Visitor.html" title="interface in cl.cromer.estructuras">Grafo.Visitor</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;visitor)</code>
<div class="block">Perform a breadth first search of this graph, starting at v.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>&lt;E extends java.lang.Exception&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#breadthFirstSearch-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.VisitorEX-">breadthFirstSearch</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
<a href="../../../cl/cromer/estructuras/Grafo.VisitorEX.html" title="interface in cl.cromer.estructuras">Grafo.VisitorEX</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>,E&gt;&nbsp;visitor)</code>
<div class="block">Perform a breadth first search of this graph, starting at v.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#clearEdges--">clearEdges</a></span>()</code>
<div class="block">Clear the mark state of all edges in the graph by calling clearMark() on
all edges.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#clearMark--">clearMark</a></span>()</code>
<div class="block">Clear the mark state of all verticies in the graph by calling clearMark()
on all verticies.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>&lt;E extends java.lang.Exception&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#depthFirstSearch-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.VisitorEX-">depthFirstSearch</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
<a href="../../../cl/cromer/estructuras/Grafo.VisitorEX.html" title="interface in cl.cromer.estructuras">Grafo.VisitorEX</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>,E&gt;&nbsp;visitor)</code>
<div class="block">Perform a depth first serach using recursion.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#dfsSpanningTree-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.DFSVisitor-">dfsSpanningTree</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
<a href="../../../cl/cromer/estructuras/Grafo.DFSVisitor.html" title="interface in cl.cromer.estructuras">Grafo.DFSVisitor</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;visitor)</code>
<div class="block">Find the spanning tree using a DFS starting from v.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#findCycles--">findCycles</a></span>()</code>
<div class="block">Search the graph for cycles.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#findVertexByData-T-java.util.Comparator-">findVertexByData</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&nbsp;data,
java.util.Comparator&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;compare)</code>
<div class="block">Search the verticies for one with data.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#findVertexByName-java.lang.String-">findVertexByName</a></span>(java.lang.String&nbsp;name)</code>
<div class="block">Search the verticies for one with name.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#getEdges--">getEdges</a></span>()</code>
<div class="block">Get the graph edges</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#getRootVertex--">getRootVertex</a></span>()</code>
<div class="block">Get the root vertex</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#getVertex-int-">getVertex</a></span>(int&nbsp;n)</code>
<div class="block">Get the given Vertex.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#getVerticies--">getVerticies</a></span>()</code>
<div class="block">Get the graph verticies</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#insertBiEdge-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.Vertex-int-">insertBiEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;from,
<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;to,
int&nbsp;cost)</code>
<div class="block">Insert a bidirectional Edge in the graph</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#isEmpty--">isEmpty</a></span>()</code>
<div class="block">Are there any verticies in the graph</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#removeEdge-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.Vertex-">removeEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;from,
<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;to)</code>
<div class="block">Remove an Edge from the graph</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#removeVertex-cl.cromer.estructuras.Grafo.Vertex-">removeVertex</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v)</code>
<div class="block">Remove a vertex from the 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="../../../cl/cromer/estructuras/Grafo.Dirigido.html#setRootVertex-cl.cromer.estructuras.Grafo.Vertex-">setRootVertex</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;root)</code>
<div class="block">Set a root vertex.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#size--">size</a></span>()</code>
<div class="block">Get the vertex count.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html#visit-cl.cromer.estructuras.Grafo.Vertex-java.util.ArrayList-">visit</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
java.util.ArrayList&lt;<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt;&nbsp;cycleEdges)</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.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</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="VISIT_COLOR_WHITE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VISIT_COLOR_WHITE</h4>
<pre>public static final&nbsp;int VISIT_COLOR_WHITE</pre>
<div class="block">Color used to mark unvisited nodes</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#cl.cromer.estructuras.Grafo.Dirigido.VISIT_COLOR_WHITE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="VISIT_COLOR_GREY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VISIT_COLOR_GREY</h4>
<pre>public static final&nbsp;int VISIT_COLOR_GREY</pre>
<div class="block">Color used to mark nodes as they are first visited in DFS order</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#cl.cromer.estructuras.Grafo.Dirigido.VISIT_COLOR_GREY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="VISIT_COLOR_BLACK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VISIT_COLOR_BLACK</h4>
<pre>public static final&nbsp;int VISIT_COLOR_BLACK</pre>
<div class="block">Color used to mark nodes after descendants are completely visited</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#cl.cromer.estructuras.Grafo.Dirigido.VISIT_COLOR_BLACK">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="verticies">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>verticies</h4>
<pre>private&nbsp;java.util.List&lt;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt; verticies</pre>
<div class="block">Vector of graph verticies</div>
</li>
</ul>
<a name="edges">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>edges</h4>
<pre>private&nbsp;java.util.List&lt;<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt; edges</pre>
<div class="block">Vector of edges in the graph</div>
</li>
</ul>
<a name="rootVertex">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>rootVertex</h4>
<pre>private&nbsp;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt; rootVertex</pre>
<div class="block">The vertex identified as the root of the graph</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Dirigido--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Dirigido</h4>
<pre>public&nbsp;Dirigido()</pre>
<div class="block">Construct a new graph without any vertices or edges</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="isEmpty--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmpty</h4>
<pre>public&nbsp;boolean&nbsp;isEmpty()</pre>
<div class="block">Are there any verticies in the graph</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if there are no verticies in the graph</dd>
</dl>
</li>
</ul>
<a name="addVertex-cl.cromer.estructuras.Grafo.Vertex-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addVertex</h4>
<pre>public&nbsp;boolean&nbsp;addVertex(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v)</pre>
<div class="block">Add a vertex to the graph</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - the Vertex to add</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the vertex was added, false if it was already in the graph.</dd>
</dl>
</li>
</ul>
<a name="size--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public&nbsp;int&nbsp;size()</pre>
<div class="block">Get the vertex count.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the number of verticies in the graph.</dd>
</dl>
</li>
</ul>
<a name="getRootVertex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRootVertex</h4>
<pre>public&nbsp;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;getRootVertex()</pre>
<div class="block">Get the root vertex</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the root vertex if one is set, null if no vertex has been set as
the root.</dd>
</dl>
</li>
</ul>
<a name="setRootVertex-cl.cromer.estructuras.Grafo.Vertex-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRootVertex</h4>
<pre>public&nbsp;void&nbsp;setRootVertex(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;root)</pre>
<div class="block">Set a root vertex. If root does no exist in the graph it is added.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>root</code> - -
the vertex to set as the root and optionally add if it does not
exist in the graph.</dd>
</dl>
</li>
</ul>
<a name="getVertex-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVertex</h4>
<pre>public&nbsp;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;getVertex(int&nbsp;n)</pre>
<div class="block">Get the given Vertex.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>n</code> - the index [0, size()-1] of the Vertex to access</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the nth Vertex</dd>
</dl>
</li>
</ul>
<a name="getVerticies--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVerticies</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt;&nbsp;getVerticies()</pre>
<div class="block">Get the graph verticies</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the graph verticies</dd>
</dl>
</li>
</ul>
<a name="addEdge-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.Vertex-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addEdge</h4>
<pre>public&nbsp;boolean&nbsp;addEdge(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;from,
<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;to,
int&nbsp;cost)
throws java.lang.IllegalArgumentException</pre>
<div class="block">Insert a directed, weighted Edge into the graph.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - -
the Edge starting vertex</dd>
<dd><code>to</code> - -
the Edge ending vertex</dd>
<dd><code>cost</code> - -
the Edge weight/cost</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the Edge was added, false if from already has this Edge</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if from/to are not verticies in the graph</dd>
</dl>
</li>
</ul>
<a name="insertBiEdge-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.Vertex-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>insertBiEdge</h4>
<pre>public&nbsp;boolean&nbsp;insertBiEdge(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;from,
<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;to,
int&nbsp;cost)
throws java.lang.IllegalArgumentException</pre>
<div class="block">Insert a bidirectional Edge in the graph</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - -
the Edge starting vertex</dd>
<dd><code>to</code> - -
the Edge ending vertex</dd>
<dd><code>cost</code> - -
the Edge weight/cost</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if edges between both nodes were added, false otherwise</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if from/to are not verticies in the graph</dd>
</dl>
</li>
</ul>
<a name="getEdges--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEdges</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt;&nbsp;getEdges()</pre>
<div class="block">Get the graph edges</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the graph edges</dd>
</dl>
</li>
</ul>
<a name="removeVertex-cl.cromer.estructuras.Grafo.Vertex-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeVertex</h4>
<pre>public&nbsp;boolean&nbsp;removeVertex(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v)</pre>
<div class="block">Remove a vertex from the graph</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - the Vertex to remove</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the Vertex was removed</dd>
</dl>
</li>
</ul>
<a name="removeEdge-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.Vertex-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeEdge</h4>
<pre>public&nbsp;boolean&nbsp;removeEdge(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;from,
<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;to)</pre>
<div class="block">Remove an Edge from the graph</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - -
the Edge starting vertex</dd>
<dd><code>to</code> - -
the Edge ending vertex</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the Edge exists, false otherwise</dd>
</dl>
</li>
</ul>
<a name="clearMark--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearMark</h4>
<pre>public&nbsp;void&nbsp;clearMark()</pre>
<div class="block">Clear the mark state of all verticies in the graph by calling clearMark()
on all verticies.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#clearMark--"><code>Grafo.Vertex.clearMark()</code></a></dd>
</dl>
</li>
</ul>
<a name="clearEdges--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearEdges</h4>
<pre>public&nbsp;void&nbsp;clearEdges()</pre>
<div class="block">Clear the mark state of all edges in the graph by calling clearMark() on
all edges.</div>
</li>
</ul>
<a name="depthFirstSearch-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.VisitorEX-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>depthFirstSearch</h4>
<pre>public&nbsp;&lt;E extends java.lang.Exception&gt;&nbsp;void&nbsp;depthFirstSearch(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
<a href="../../../cl/cromer/estructuras/Grafo.VisitorEX.html" title="interface in cl.cromer.estructuras">Grafo.VisitorEX</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>,E&gt;&nbsp;visitor)
throws E extends java.lang.Exception</pre>
<div class="block">Perform a depth first serach using recursion.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>E</code> - Exception</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - -
the Vertex to start the search from</dd>
<dd><code>visitor</code> - -
the vistor to inform prior to</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>E</code> - if visitor.visit throws an exception</dd>
<dd><code>E extends java.lang.Exception</code></dd>
</dl>
</li>
</ul>
<a name="breadthFirstSearch-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.Visitor-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>breadthFirstSearch</h4>
<pre>public&nbsp;void&nbsp;breadthFirstSearch(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
<a href="../../../cl/cromer/estructuras/Grafo.Visitor.html" title="interface in cl.cromer.estructuras">Grafo.Visitor</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;visitor)</pre>
<div class="block">Perform a breadth first search of this graph, starting at v.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - -
the search starting point</dd>
<dd><code>visitor</code> - -
the vistor whose vist method is called prior to visting a vertex.</dd>
</dl>
</li>
</ul>
<a name="breadthFirstSearch-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.VisitorEX-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>breadthFirstSearch</h4>
<pre>public&nbsp;&lt;E extends java.lang.Exception&gt;&nbsp;void&nbsp;breadthFirstSearch(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
<a href="../../../cl/cromer/estructuras/Grafo.VisitorEX.html" title="interface in cl.cromer.estructuras">Grafo.VisitorEX</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>,E&gt;&nbsp;visitor)
throws E extends java.lang.Exception</pre>
<div class="block">Perform a breadth first search of this graph, starting at v. The vist may
be cut short if visitor throws an exception during a vist callback.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>E</code> - -
exception</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - -
the search starting point</dd>
<dd><code>visitor</code> - -
the vistor whose vist method is called prior to visting a vertex.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>E</code> - if vistor.visit throws an exception</dd>
<dd><code>E extends java.lang.Exception</code></dd>
</dl>
</li>
</ul>
<a name="dfsSpanningTree-cl.cromer.estructuras.Grafo.Vertex-cl.cromer.estructuras.Grafo.DFSVisitor-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dfsSpanningTree</h4>
<pre>public&nbsp;void&nbsp;dfsSpanningTree(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
<a href="../../../cl/cromer/estructuras/Grafo.DFSVisitor.html" title="interface in cl.cromer.estructuras">Grafo.DFSVisitor</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;visitor)</pre>
<div class="block">Find the spanning tree using a DFS starting from v.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - -
the vertex to start the search from</dd>
<dd><code>visitor</code> - -
visitor invoked after each vertex is visited and an edge is added
to the tree.</dd>
</dl>
</li>
</ul>
<a name="findVertexByName-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findVertexByName</h4>
<pre>public&nbsp;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;findVertexByName(java.lang.String&nbsp;name)</pre>
<div class="block">Search the verticies for one with name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - -
the vertex name</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the first vertex with a matching name, null if no matches are found</dd>
</dl>
</li>
</ul>
<a name="findVertexByData-java.lang.Object-java.util.Comparator-">
<!-- -->
</a><a name="findVertexByData-T-java.util.Comparator-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findVertexByData</h4>
<pre>public&nbsp;<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;findVertexByData(<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&nbsp;data,
java.util.Comparator&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;compare)</pre>
<div class="block">Search the verticies for one with data.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>data</code> - -
the vertex data to match</dd>
<dd><code>compare</code> - -
the comparator to perform the match</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the first vertex with a matching data, null if no matches are found</dd>
</dl>
</li>
</ul>
<a name="findCycles--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findCycles</h4>
<pre>public&nbsp;<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;[]&nbsp;findCycles()</pre>
<div class="block">Search the graph for cycles. In order to detect cycles, we use a modified
depth first search called a colored DFS. All nodes are initially marked
white. When a node is encountered, it is marked grey, and when its
descendants are completely visited, it is marked black. If a grey node is
ever encountered, then there is a cycle.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the edges that form cycles in the graph. The array will be empty if
there are no cycles.</dd>
</dl>
</li>
</ul>
<a name="visit-cl.cromer.estructuras.Grafo.Vertex-java.util.ArrayList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>visit</h4>
<pre>private&nbsp;void&nbsp;visit(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&nbsp;v,
java.util.ArrayList&lt;<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a>&lt;<a href="../../../cl/cromer/estructuras/Grafo.Dirigido.html" title="type parameter in Grafo.Dirigido">T</a>&gt;&gt;&nbsp;cycleEdges)</pre>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></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="../../../cl/cromer/estructuras/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Grafo.Dirigido.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-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../cl/cromer/estructuras/Grafo.DFSVisitor.html" title="interface in cl.cromer.estructuras"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?cl/cromer/estructuras/Grafo.Dirigido.html" target="_top">Frames</a></li>
<li><a href="Grafo.Dirigido.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>Nested&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 ======= -->
</body>
</html>