📄 optnode.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#add(org.geotools.graph.structure.Edge)">add</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A> e)</CODE><BR> Adds an edge to the adjacency list of the node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#getDegree()">getDegree</A></B>()</CODE><BR> Returns the degree of the node. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#getEdge(org.geotools.graph.structure.Node)">getEdge</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A> other)</CODE><BR> Returns an edge in the adjacency list of the node that is adjacent to another specified node. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#getEdgeArray()">getEdgeArray</A></B>()</CODE><BR> Returns the edge adjacency list of the node as an array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#getEdges()">getEdges</A></B>()</CODE><BR> Returns the edge adjacency list of the node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#getEdges(org.geotools.graph.structure.Node)">getEdges</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A> other)</CODE><BR> Returns a collection of edges in the adjacency list of the node that are adjacent to another specified node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#getRelated()">getRelated</A></B>()</CODE><BR> This iterator iterates over the underlying edge array of the node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#remove(org.geotools.graph.structure.Edge)">remove</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A> e)</CODE><BR> Not supported.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/opt/OptNode.html#setDegree(int)">setDegree</A></B>(int degree)</CODE><BR> Sets the degree of the node. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_OptGraphable"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html" title="class in org.geotools.graph.structure.opt">OptGraphable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html#getCount()">getCount</A>, <A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html#getID()">getID</A>, <A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html#getObject()">getObject</A>, <A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html#isVisited()">isVisited</A>, <A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html#setCount(int)">setCount</A>, <A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html#setID(int)">setID</A>, <A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html#setObject(java.lang.Object)">setObject</A>, <A HREF="../../../../../org/geotools/graph/structure/opt/OptGraphable.html#setVisited(boolean)">setVisited</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Graphable"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="../../../../../org/geotools/graph/structure/Graphable.html" title="interface in org.geotools.graph.structure">Graphable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/graph/structure/Graphable.html#getCount()">getCount</A>, <A HREF="../../../../../org/geotools/graph/structure/Graphable.html#getID()">getID</A>, <A HREF="../../../../../org/geotools/graph/structure/Graphable.html#getObject()">getObject</A>, <A HREF="../../../../../org/geotools/graph/structure/Graphable.html#isVisited()">isVisited</A>, <A HREF="../../../../../org/geotools/graph/structure/Graphable.html#setCount(int)">setCount</A>, <A HREF="../../../../../org/geotools/graph/structure/Graphable.html#setID(int)">setID</A>, <A HREF="../../../../../org/geotools/graph/structure/Graphable.html#setObject(java.lang.Object)">setObject</A>, <A HREF="../../../../../org/geotools/graph/structure/Graphable.html#setVisited(boolean)">setVisited</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="OptNode()"><!-- --></A><H3>OptNode</H3><PRE>public <B>OptNode</B>()</PRE><DL><DD>Constructs a new OptimizedNode. This constructor does not build the adjacency array for the node.<P></DL><HR><A NAME="OptNode(int)"><!-- --></A><H3>OptNode</H3><PRE>public <B>OptNode</B>(int degree)</PRE><DL><DD>Constructs a new Optimized Node with a known degree.<P><DT><B>Parameters:</B><DD><CODE>degree</CODE> - The degree of the node.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="add(org.geotools.graph.structure.Edge)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A> e)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A></CODE></B></DD><DD>Adds an edge to the adjacency list of the node.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/structure/Node.html#add(org.geotools.graph.structure.Edge)">add</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - Adjacent edge to add.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/structure/Node.html#add(org.geotools.graph.structure.Edge)"><CODE>Node.add(Edge)</CODE></A></DL></DD></DL><HR><A NAME="remove(org.geotools.graph.structure.Edge)"><!-- --></A><H3>remove</H3><PRE>public void <B>remove</B>(<A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A> e)</PRE><DL><DD>Not supported.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/structure/Node.html#remove(org.geotools.graph.structure.Edge)">remove</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - Adjacent edge to remove.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang">UnsupportedOperationException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/structure/Node.html#remove(org.geotools.graph.structure.Edge)"><CODE>Node.remove(Edge)</CODE></A></DL></DD></DL><HR><A NAME="getEdge(org.geotools.graph.structure.Node)"><!-- --></A><H3>getEdge</H3><PRE>public <A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A> <B>getEdge</B>(<A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A> other)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A></CODE></B></DD><DD>Returns an edge in the adjacency list of the node that is adjacent to another specified node. <BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -