page538.html

来自「Data Structures And Algorithms With Obje」· HTML 代码 · 共 55 行

HTML
55
字号
<HTML><HEAD><TITLE>Properties</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="tex2html7352" HREF="page539.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html7350" HREF="page537.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html7346" HREF="page537.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html7354" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H3><A NAME="SECTION0016241000000000000000">Properties</A></H3><P>Program&nbsp;<A HREF="page538.html#proggraphb"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> continues the definition ofthe abstract <tt>Graph</tt> class.The following properties of graphs are defined in Program&nbsp;<A HREF="page538.html#proggraphb"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A><P><DL ><DT><STRONG><tt>numberOfEdges</tt></STRONG><DD>	This property returns the number of edges contained by the graph.    <DT><STRONG><tt>numberOfVertices</tt></STRONG><DD>	This property returns the number of vertices contained by the graph.    <DT><STRONG><tt>isDirected</tt></STRONG><DD>	This <tt>bool</tt>-valued property is <tt>True</tt> if the	graph is a directed graph.    <DT><STRONG><tt>isCyclic</tt></STRONG><DD>	This <tt>bool</tt>-valued property is <tt>True</tt>	if the graph is <em>cyclic</em>.    <DT><STRONG><tt>isConnected</tt></STRONG><DD>	This <tt>bool</tt>-valued property is <tt>True</tt>	if the graph is <em>connected</em>.	Connectedness of graphs is discussed in Section&nbsp;<A HREF="page558.html#secgraphconnected"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.    <DT><STRONG><tt>vertices</tt></STRONG><DD>	This property returns an iterator that enumerates	the elements of  <IMG WIDTH=11 HEIGHT=12 ALIGN=BOTTOM ALT="tex2html_wrap_inline70551" SRC="img2167.gif"  >.    <DT><STRONG><tt>edges</tt></STRONG><DD>	This property returns an iterator that enumerates	the elements of  <IMG WIDTH=9 HEIGHT=13 ALIGN=BOTTOM ALT="tex2html_wrap_inline70557" SRC="img2168.gif"  >.<P> </DL><P><P><A NAME="49973">&#160;</A><A NAME="proggraphb">&#160;</A> <IMG WIDTH=575 HEIGHT=733 ALIGN=BOTTOM ALT="program49629" SRC="img2268.gif"  ><BR><STRONG>Program:</STRONG> Abstract <tt>Graph</tt> class properties.<BR><P><HR><A NAME="tex2html7352" HREF="page539.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html7350" HREF="page537.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html7346" HREF="page537.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html7354" 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 &#169; 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 + -
显示快捷键?