⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graphlistundirected.html

📁 学习JAVA的很好的JAVA包和文档包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove possible edge between vertices labeled vLabel1 and vLabel2.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../structure/GraphListUndirected.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a string representation of graph.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_structure.GraphList"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class structure.<A HREF="../structure/GraphList.html">GraphList</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../structure/GraphList.html#add(java.lang.Object)">add</A>, <A HREF="../structure/GraphList.html#clear()">clear</A>, <A HREF="../structure/GraphList.html#contains(java.lang.Object)">contains</A>, <A HREF="../structure/GraphList.html#containsEdge(java.lang.Object, java.lang.Object)">containsEdge</A>, <A HREF="../structure/GraphList.html#degree(java.lang.Object)">degree</A>, <A HREF="../structure/GraphList.html#edges()">edges</A>, <A HREF="../structure/GraphList.html#get(java.lang.Object)">get</A>, <A HREF="../structure/GraphList.html#getEdge(java.lang.Object, java.lang.Object)">getEdge</A>, <A HREF="../structure/GraphList.html#isDirected()">isDirected</A>, <A HREF="../structure/GraphList.html#isEmpty()">isEmpty</A>, <A HREF="../structure/GraphList.html#isVisited(java.lang.Object)">isVisited</A>, <A HREF="../structure/GraphList.html#isVisitedEdge(structure.Edge)">isVisitedEdge</A>, <A HREF="../structure/GraphList.html#iterator()">iterator</A>, <A HREF="../structure/GraphList.html#main(java.lang.String[])">main</A>, <A HREF="../structure/GraphList.html#neighbors(java.lang.Object)">neighbors</A>, <A HREF="../structure/GraphList.html#reset()">reset</A>, <A HREF="../structure/GraphList.html#size()">size</A>, <A HREF="../structure/GraphList.html#visit(java.lang.Object)">visit</A>, <A HREF="../structure/GraphList.html#visitEdge(structure.Edge)">visitEdge</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_structure.AbstractStructure"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class structure.<A HREF="../structure/AbstractStructure.html">AbstractStructure</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../structure/AbstractStructure.html#elements()">elements</A>, <A HREF="../structure/AbstractStructure.html#hashCode()">hashCode</A>, <A HREF="../structure/AbstractStructure.html#values()">values</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#<clinit>()"><clinit></A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#registerNatives()">registerNatives</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_structure.Structure"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface structure.<A HREF="../structure/Structure.html">Structure</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../structure/Structure.html#elements()">elements</A>, <A HREF="../structure/Structure.html#values()">values</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="GraphListUndirected()"><!-- --></A><H3>GraphListUndirected</H3><PRE>public <B>GraphListUndirected</B>()</PRE><DL><DD>Construct an undirected, adjacency-list based graph.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="addEdge(java.lang.Object, java.lang.Object, java.lang.Object)"><!-- --></A><H3>addEdge</H3><PRE>public void <B>addEdge</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;vLabel1,                    <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;vLabel2,                    <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;label)</PRE><DL><DD>Add an edge between two vertices within the graph.  Edge is undirected. Duplicate edges are silently replaced. Labels on edges may be null.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/GraphList.html#addEdge(java.lang.Object, java.lang.Object, java.lang.Object)">addEdge</A></CODE> in class <CODE><A HREF="../structure/GraphList.html">GraphList</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vLabel1</CODE> - One vertex.<DD><CODE>vLabel2</CODE> - Another vertex.<DD><CODE>label</CODE> - Label associated with the edge.<DT><B>Precondition:</B><DD>vLabel1 and vLabel2 are labels of existing vertices, v1 & v2<DT><B>Postcondition:</B><DD>an edge (undirected) is inserted between v1 and v2;       if edge is new, it is labeled with label (can be null)</DL></DD></DL><HR><A NAME="remove(java.lang.Object)"><!-- --></A><H3>remove</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> <B>remove</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;label)</PRE><DL><DD>Remove a vertex from the graph.  Associated edges are also  removed.  Non-vertices are silently ignored.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/GraphList.html#remove(java.lang.Object)">remove</A></CODE> in class <CODE><A HREF="../structure/GraphList.html">GraphList</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - The label of the vertex within the graph.<DT><B>Precondition:</B><DD>label is non-null vertex label<DT><B>Postcondition:</B><DD>vertex with "equals" label is removed, if found<DT><B>Returns:</B><DD>The label associated with the vertex.</DL></DD></DL><HR><A NAME="removeEdge(java.lang.Object, java.lang.Object)"><!-- --></A><H3>removeEdge</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> <B>removeEdge</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;vLabel1,                         <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;vLabel2)</PRE><DL><DD>Remove possible edge between vertices labeled vLabel1 and vLabel2.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/GraphList.html#removeEdge(java.lang.Object, java.lang.Object)">removeEdge</A></CODE> in class <CODE><A HREF="../structure/GraphList.html">GraphList</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vLabel1</CODE> - One vertex.<DD><CODE>vLabel2</CODE> - Another vertex.<DT><B>Precondition:</B><DD>vLabel1 and vLabel2 are labels of existing vertices<DT><B>Postcondition:</B><DD>edge is removed, its label is returned<DT><B>Returns:</B><DD>The label associated with the edge removed.</DL></DD></DL><HR><A NAME="edgeCount()"><!-- --></A><H3>edgeCount</H3><PRE>public int <B>edgeCount</B>()</PRE><DL><DD>Determine the number of edges in graph.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/GraphList.html#edgeCount()">edgeCount</A></CODE> in class <CODE><A HREF="../structure/GraphList.html">GraphList</A></CODE></DL></DD><DD><DL><DT><B>Postcondition:</B><DD>returns the number of edges in graph<DT><B>Returns:</B><DD>Number of edges in graph.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Construct a string representation of graph.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Postcondition:</B><DD>returns string representation of graph<DT><B>Returns:</B><DD>String representing graph.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href=../copyright.html target=_top>&copy; 1998-2002 McGraw-Hill</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../structure/GraphListEIterator.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../structure/GraphListVertex.html"><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>  &nbsp;&nbsp;<A HREF="GraphListUndirected.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_structure.GraphList">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -