page542.html
来自「Data Structures And Algorithms With Obje」· HTML 代码 · 共 32 行
HTML
32 行
<HTML><HEAD><TITLE>Implementing Undirected Graphs</TITLE></HEAD><BODY bgcolor="#FFFFFF"> <a href="../index.html" target="_top"><img src="../icons/usins.gif" alt="Logo" align=right></a><b>Data Structures and Algorithms with Object-Oriented Design Patterns in Python</b><br><A NAME="tex2html7395" HREF="page543.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html7393" HREF="page532.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html7387" HREF="page541.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A> <A NAME="tex2html7397" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H2><A NAME="SECTION0016270000000000000000">Implementing Undirected Graphs</A></H2><A NAME="secgraphsimplement"> </A><P>This section describes two concrete classes--<tt>GraphAsMatrix</tt> and <tt>GraphAsLists</tt>.These classes both represent <em>undirected graphs</em>.The <tt>GraphAsMatrix</tt> class represents the edges of a graph usingan adjacency matrix.The <tt>GraphAsLists</tt> class represents the edges of a graph usingadjacency lists.<P><BR> <HR><UL> <LI> <A NAME="tex2html7398" HREF="page543.html#SECTION0016271000000000000000">Using Adjacency Matrices</A><LI> <A NAME="tex2html7399" HREF="page544.html#SECTION0016272000000000000000">Using Adjacency Lists</A></UL><HR><A NAME="tex2html7395" HREF="page543.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html7393" HREF="page532.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html7387" HREF="page541.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A> <A NAME="tex2html7397" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <P><ADDRESS><img src="../icons/bruno.gif" alt="Bruno" align=right><a href="../copyright.html">Copyright © 2003</a> by <a href="../signature.html">Bruno R. Preiss, P.Eng.</a> All rights reserved.</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?