From gregod@cs.rpi.edu Fri Feb 20 11:06:04 2004 From: Douglas Gregor To: boost-users@lists.preview.boost.org Subject: [Boost-users] [Graph] What can I do with null_vertex? Date: Fri, 20 Feb 2004 11:06:11 -0500 Message-ID: <200402201100.25580.gregod@cs.rpi.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8411200934158030578==" --===============8411200934158030578== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit There are no semantics for null_vertex. I assume I can copy it, but can I compare it against other vertex descriptors via == and !=? Is it always different from "real" vertex descriptors? Doug --===============8411200934158030578==-- From jsiek@osl.iu.edu Fri Feb 20 11:40:42 2004 From: Jeremy Siek To: boost-users@lists.preview.boost.org Subject: Re: [Boost-users] [Graph] What can I do with null_vertex? Date: Fri, 20 Feb 2004 11:40:36 -0500 Message-ID: <829410A8-63C3-11D8-A891-000A95C45228@osl.iu.edu> In-Reply-To: <200402201100.25580.gregod@cs.rpi.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6229230663105232418==" --===============6229230663105232418== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Doug, On Feb 20, 2004, at 11:06 AM, Douglas Gregor wrote: > There are no semantics for null_vertex. I assume I can copy it, but > can I > compare it against other vertex descriptors via == and !=? Is it always > different from "real" vertex descriptors? By "null_vertex", do you mean the graph_traits::null_vertex() function? I believe http://www.boost.org/libs/graph/doc/Graph.html does give the semantics. It says: Returns a special vertex_descriptor object which does not refer to any vertex of graph object which type is G. Also, in the section describing the associated types:
boost::graph_traits<G>::vertex_descriptor
A vertex descriptor corresponds to a unique vertex in an abstract graph instance. A vertex descriptor must be Default Constructible, Assignable, and Equality Comparable. Cheers, Jeremy _______________________________________________ Jeremy Siek http://www.osl.iu.edu/~jsiek Ph.D. Student, Indiana University Bloomington C++ Booster (http://www.boost.org) Office phone: (812) 856-1820 _______________________________________________ --===============6229230663105232418==--