blob: 5273233e8b7dd08ad7314da1b316613259f9f13b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Graph (Archiva Components :: Parent 3.0-SNAPSHOT API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Graph (Archiva Components :: Parent 3.0-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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/Graph.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><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../org/apache/archiva/components/graph/api/Node.html" title="interface in org.apache.archiva.components.graph.api"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/archiva/components/graph/api/Graph.html" target="_top">Frames</a></li>
<li><a href="Graph.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>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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">org.apache.archiva.components.graph.api</div>
<h2 title="Interface Graph" class="title">Interface Graph&lt;V extends <a href="../../../../../../org/apache/archiva/components/graph/api/Node.html" title="interface in org.apache.archiva.components.graph.api">Node</a>&lt;V&gt;&gt;</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>V</code> - </dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../../../../../org/apache/archiva/components/graph/base/DirectedGraph.html" title="class in org.apache.archiva.components.graph.base">DirectedGraph</a>, <a href="../../../../../../org/apache/archiva/components/graph/base/SimpleGraph.html" title="class in org.apache.archiva.components.graph.base">SimpleGraph</a></dd>
</dl>
<hr>
<br>
<pre>public interface <a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.30">Graph</a>&lt;V extends <a href="../../../../../../org/apache/archiva/components/graph/api/Node.html" title="interface in org.apache.archiva.components.graph.api">Node</a>&lt;V&gt;&gt;</pre>
<div class="block">A graph is the container for nodes. The nodes are connected by edges. Each node and
edge instance is coupled to the graph where it was created.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#addEdge-org.apache.archiva.components.graph.api.RelationType-java.lang.String-java.lang.String-V-V-">addEdge</a></span>(<a href="../../../../../../org/apache/archiva/components/graph/api/RelationType.html" title="interface in org.apache.archiva.components.graph.api">RelationType</a>&nbsp;type,
<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,
<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;label,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;sourceNode,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;destinationNode)</code>
<div class="block">Creates a new edge instance with the given id or returns the edge instance with the given id and
type.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#addEdge-java.lang.String-java.lang.String-V-V-">addEdge</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,
<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;label,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;sourceNode,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;destinationNode)</code>
<div class="block">Creates a new edge instance with the given id or returns the edge instance with the given id.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#addNode-java.lang.String-java.lang.String-">addNode</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,
<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;label)</code>
<div class="block">Adds a new node if the id does not exist yet, otherwise returns the node with the given id
and the new label set.</div>
</td>
</tr>
<tr id="i3" 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="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#findNodes-java.lang.String-">findNodes</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;query)</code>
<div class="block">Finds nodes using a given query.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#getEdge-java.lang.String-">getEdge</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">Returns the edge with the given id.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#getNode-java.lang.String-">getNode</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">Returns the node with the given id</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><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="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#getNodes--">getNodes</a></span>()</code>
<div class="block">Returns all nodes of the graph</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#newEdge-org.apache.archiva.components.graph.api.RelationType-java.lang.String-V-V-">newEdge</a></span>(<a href="../../../../../../org/apache/archiva/components/graph/api/RelationType.html" title="interface in org.apache.archiva.components.graph.api">RelationType</a>&nbsp;type,
<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;label,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;sourceNode,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;destinationNode)</code>
<div class="block">Creates a new edge instance with the given label.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#newEdge-java.lang.String-V-V-">newEdge</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;label,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;sourceNode,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;destinationNode)</code>
<div class="block">Creates a new edge instance with the given label.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#newNode-java.lang.String-">newNode</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;label)</code>
<div class="block">Creates a node with the given label in the graph.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#removeEdge-org.apache.archiva.components.graph.api.Edge-">removeEdge</a></span>(<a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;edge)</code>
<div class="block">Removes the edge from the graph and unregisters it from the source and destination</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html#removeNode-V-">removeNode</a></span>(<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;node)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="newNode-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newNode</h4>
<pre><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.42">newNode</a>(<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;label)</pre>
<div class="block">Creates a node with the given label in the graph. The id of the node is generated
by the graph implementation.
The method returns always a new node instance, even if a node with the given label
exists already.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>label</code> - the label of the new node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new node instance with the given label and a generated id</dd>
</dl>
</li>
</ul>
<a name="addNode-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addNode</h4>
<pre><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.52">addNode</a>(<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,
<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;label)</pre>
<div class="block">Adds a new node if the id does not exist yet, otherwise returns the node with the given id
and the new label set.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the id of the node</dd>
<dd><code>label</code> - the label of the node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new node instance or the existing node with the given id</dd>
</dl>
</li>
</ul>
<a name="removeNode-org.apache.archiva.components.graph.api.Node-">
<!-- -->
</a><a name="removeNode-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeNode</h4>
<pre>void&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.54">removeNode</a>(<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;node)</pre>
</li>
</ul>
<a name="newEdge-java.lang.String-org.apache.archiva.components.graph.api.Node-org.apache.archiva.components.graph.api.Node-">
<!-- -->
</a><a name="newEdge-java.lang.String-V-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newEdge</h4>
<pre><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.68">newEdge</a>(<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;label,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;sourceNode,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;destinationNode)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
<div class="block">Creates a new edge instance with the given label. The method returns always a new edge instance,
even if a edge with the given label exists already.
The type is set to <a href="../../../../../../org/apache/archiva/components/graph/api/StandardRelationType.html#DEFAULT"><code>StandardRelationType.DEFAULT</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>label</code> - the edge label</dd>
<dd><code>sourceNode</code> - the source node</dd>
<dd><code>destinationNode</code> - the destination node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new edge instance</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if source or destination is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="newEdge-org.apache.archiva.components.graph.api.RelationType-java.lang.String-org.apache.archiva.components.graph.api.Node-org.apache.archiva.components.graph.api.Node-">
<!-- -->
</a><a name="newEdge-org.apache.archiva.components.graph.api.RelationType-java.lang.String-V-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newEdge</h4>
<pre><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.81">newEdge</a>(<a href="../../../../../../org/apache/archiva/components/graph/api/RelationType.html" title="interface in org.apache.archiva.components.graph.api">RelationType</a>&nbsp;type,
<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;label,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;sourceNode,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;destinationNode)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
<div class="block">Creates a new edge instance with the given label. The method returns always a new edge instance,
even if a edge with the given label exists already.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the edge type</dd>
<dd><code>label</code> - the edge label</dd>
<dd><code>sourceNode</code> - the source node</dd>
<dd><code>destinationNode</code> - the destination node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new edge instance</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the source or destination node is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="addEdge-org.apache.archiva.components.graph.api.RelationType-java.lang.String-java.lang.String-org.apache.archiva.components.graph.api.Node-org.apache.archiva.components.graph.api.Node-">
<!-- -->
</a><a name="addEdge-org.apache.archiva.components.graph.api.RelationType-java.lang.String-java.lang.String-V-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addEdge</h4>
<pre><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.97">addEdge</a>(<a href="../../../../../../org/apache/archiva/components/graph/api/RelationType.html" title="interface in org.apache.archiva.components.graph.api">RelationType</a>&nbsp;type,
<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,
<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;label,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;sourceNode,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;destinationNode)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
<div class="block">Creates a new edge instance with the given id or returns the edge instance with the given id and
type.
If a edge with the id exists already but with a different type it will throw a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the type of the edge</dd>
<dd><code>id</code> - the id</dd>
<dd><code>label</code> - the edge label</dd>
<dd><code>sourceNode</code> - the source node</dd>
<dd><code>destinationNode</code> - the destination node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the newly created edge instance</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if a edge instance with the given id but a different type exists already. Or if
source or destination node is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="addEdge-java.lang.String-java.lang.String-org.apache.archiva.components.graph.api.Node-org.apache.archiva.components.graph.api.Node-">
<!-- -->
</a><a name="addEdge-java.lang.String-java.lang.String-V-V-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addEdge</h4>
<pre><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.110">addEdge</a>(<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,
<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;label,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;sourceNode,
<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;destinationNode)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
<div class="block">Creates a new edge instance with the given id or returns the edge instance with the given id.
If the edge is newly created it will get the type <a href="../../../../../../org/apache/archiva/components/graph/api/StandardRelationType.html#DEFAULT"><code>StandardRelationType.DEFAULT</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the id</dd>
<dd><code>label</code> - the edge label</dd>
<dd><code>sourceNode</code> - the source node</dd>
<dd><code>destinationNode</code> - the destination node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the newly created edge instance</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if source or destination is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="removeEdge-org.apache.archiva.components.graph.api.Edge-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeEdge</h4>
<pre>void&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.117">removeEdge</a>(<a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;edge)</pre>
<div class="block">Removes the edge from the graph and unregisters it from the source and destination</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>edge</code> - the edge to remove</dd>
</dl>
</li>
</ul>
<a name="getNode-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNode</h4>
<pre><a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.125">getNode</a>(<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">Returns the node with the given id</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the node id</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the found node, or <code>null</code>, if it does not exist</dd>
</dl>
</li>
</ul>
<a name="findNodes-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findNodes</h4>
<pre><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="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.133">findNodes</a>(<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;query)</pre>
<div class="block">Finds nodes using a given query. The query syntax depends on the graph implementation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>query</code> - the query to find nodes</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the found nodes, or a empty list</dd>
</dl>
</li>
</ul>
<a name="getEdge-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEdge</h4>
<pre><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api">Edge</a>&lt;<a href="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.141">getEdge</a>(<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">Returns the edge with the given id.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the edge id</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the found edge instance, or <code>null</code>, if it does not exist</dd>
</dl>
</li>
</ul>
<a name="getNodes--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getNodes</h4>
<pre><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="../../../../../../org/apache/archiva/components/graph/api/Graph.html" title="type parameter in Graph">V</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/archiva/components/graph/api/Graph.html#line.148">getNodes</a>()</pre>
<div class="block">Returns all nodes of the graph</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of nodes that build the graph</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/Graph.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><a href="../../../../../../org/apache/archiva/components/graph/api/Edge.html" title="interface in org.apache.archiva.components.graph.api"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../org/apache/archiva/components/graph/api/Node.html" title="interface in org.apache.archiva.components.graph.api"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/archiva/components/graph/api/Graph.html" target="_top">Frames</a></li>
<li><a href="Graph.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>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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; 2006&#x2013;2019 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>