Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77733 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2012-04-03 00:44:43


Author: jewillco
Date: 2012-04-03 00:44:40 EDT (Tue, 03 Apr 2012)
New Revision: 77733
URL: http://svn.boost.org/trac/boost/changeset/77733

Log:
Added null_vertex()
Text files modified:
   trunk/boost/graph/vector_as_graph.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/boost/graph/vector_as_graph.hpp
==============================================================================
--- trunk/boost/graph/vector_as_graph.hpp (original)
+++ trunk/boost/graph/vector_as_graph.hpp 2012-04-03 00:44:40 EDT (Tue, 03 Apr 2012)
@@ -79,6 +79,7 @@
     typedef typename std::vector<EdgeList>::size_type vertices_size_type;
     typedef void edges_size_type;
     typedef typename EdgeList::size_type degree_size_type;
+ static V null_vertex() {return V(-1);}
   };
   template <class EdgeList>
   struct edge_property_type< std::vector<EdgeList> >


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk