📄 graph.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/graph/structure/Graph.html#visitNodes(org.geotools.graph.structure.GraphVisitor)">visitNodes</A></B>(<A HREF="../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A> visitor)</CODE><BR> Applies the visitor pattern to the nodes of the graph.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="PASS_AND_CONTINUE"><!-- --></A><H3>PASS_AND_CONTINUE</H3><PRE>public static final int <B>PASS_AND_CONTINUE</B></PRE><DL><DD>Signal to indicate that a graph component meets the requirements of a query against a graph and that the query should continue.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.geotools.graph.structure.Graph.PASS_AND_CONTINUE">Constant Field Values</A></DL></DL><HR><A NAME="PASS_AND_STOP"><!-- --></A><H3>PASS_AND_STOP</H3><PRE>public static final int <B>PASS_AND_STOP</B></PRE><DL><DD>Signal to indicate that a graph component meets the requirements of a query against a graph and that the query should end.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.geotools.graph.structure.Graph.PASS_AND_STOP">Constant Field Values</A></DL></DL><HR><A NAME="FAIL_QUERY"><!-- --></A><H3>FAIL_QUERY</H3><PRE>public static final int <B>FAIL_QUERY</B></PRE><DL><DD>Signal to indicate that a graph component does NOT meet the requirements of a query made against the graph.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.geotools.graph.structure.Graph.FAIL_QUERY">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="getNodes()"><!-- --></A><H3>getNodes</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>getNodes</B>()</PRE><DL><DD>Returns the nodes of the graph.<P><DD><DL><DT><B>Returns:</B><DD>A collection of Node objects.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure"><CODE>Node</CODE></A></DL></DD></DL><HR><A NAME="getEdges()"><!-- --></A><H3>getEdges</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>getEdges</B>()</PRE><DL><DD>Returns the edges of the graph.<P><DD><DL><DT><B>Returns:</B><DD>A collection of Edge objects.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure"><CODE>Edge</CODE></A></DL></DD></DL><HR><A NAME="queryNodes(org.geotools.graph.structure.GraphVisitor)"><!-- --></A><H3>queryNodes</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>queryNodes</B>(<A HREF="../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A> visitor)</PRE><DL><DD>Performs a query against the nodes of the graph. Each Node object contained in the graph is passed to a GraphVisitor to determine if it meets the query criteria.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visitor</CODE> - Determines if node meets query criteria. Returns MEET_AND_CONTINUE to signal that the node meets the query criteria and the query should continue.<BR> Returns MEET_AND_STOP to signal that the node meest the query criteria and the query should stop.<BR> FAIL_QUERY to signal that the node does NOT meet the query criteria.<DT><B>Returns:</B><DD>A collection of nodes that meet the query criteria.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure"><CODE>Node</CODE></A>, <A HREF="../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure"><CODE>GraphVisitor</CODE></A></DL></DD></DL><HR><A NAME="queryEdges(org.geotools.graph.structure.GraphVisitor)"><!-- --></A><H3>queryEdges</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>queryEdges</B>(<A HREF="../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A> visitor)</PRE><DL><DD>Performs a query against the edges of the graph. Each Edge object contained in the graph is passed to a GraphVisitor to determine if it meets the query criteria.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visitor</CODE> - Determines if the meets the query criteria. <BR> Returns MEET_AND_CONTINUE to signal that the edge meets the query criteria and the query should continue.<BR> Returns MEET_AND_STOP to signal that the edge meest the query criteria and the query should stop.<BR> FAIL_QUERY to signal that the edge does NOT meet the query criteria.<DT><B>Returns:</B><DD>A collection of edges that meet the query criteria.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure"><CODE>Edge</CODE></A>, <A HREF="../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure"><CODE>GraphVisitor</CODE></A></DL></DD></DL><HR><A NAME="visitNodes(org.geotools.graph.structure.GraphVisitor)"><!-- --></A><H3>visitNodes</H3><PRE>public void <B>visitNodes</B>(<A HREF="../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A> visitor)</PRE><DL><DD>Applies the visitor pattern to the nodes of the graph.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visitor</CODE> - </DL></DD></DL><HR><A NAME="visitEdges(org.geotools.graph.structure.GraphVisitor)"><!-- --></A><H3>visitEdges</H3><PRE>public void <B>visitEdges</B>(<A HREF="../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A> visitor)</PRE><DL><DD>Applies the visitor pattern to the edges of the graph.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visitor</CODE> - </DL></DD></DL><HR><A NAME="getNodesOfDegree(int)"><!-- --></A><H3>getNodesOfDegree</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getNodesOfDegree</B>(int n)</PRE><DL><DD>Returns all the nodes in the graph of a specified degree. The degree of a node is the number of edges that are adjacent to the node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - The desired degree of nodes to be returned.<DT><B>Returns:</B><DD>A collection of nodes of degree n.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/graph/structure/Node.html#getDegree()"><CODE>Node.getDegree()</CODE></A></DL></DD></DL><HR><A NAME="getVisitedNodes(boolean)"><!-- --></A><H3>getVisitedNodes</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getVisitedNodes</B>(boolean visited)</PRE><DL><DD>Returns all the nodes in the graph that have been marked as visited or non-visited.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visited</CODE> - True if node is visited, false if node is unvisited.<DT><B>Returns:</B><DD>List of nodes marked as visited / non-visited.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/graph/structure/Graphable.html#isVisited()"><CODE>Graphable.isVisited()</CODE></A></DL></DD></DL><HR><A NAME="getVisitedEdges(boolean)"><!-- --></A><H3>getVisitedEdges</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getVisitedEdges</B>(boolean visited)</PRE><DL><DD>Returns all the edges in the graph that have been marked as visited or non-visited.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visited</CODE> - True if edge is visited, false if edge is unvisited.<DT><B>Returns:</B><DD>List of edges marked as visited / non-visited.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/graph/structure/Graphable.html#isVisited()"><CODE>Graphable.isVisited()</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Graph.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/graph/structure/Graphable.html" title="interface in org.geotools.graph.structure"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="Graph.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -