[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
CppAdjacency_list

(C++) boost::adjacency_list

Class in the Boost Graph library.

Can be found in the header file boost/graph/adjacency_list.hpp.

//Header file
  1. include <boost/graph/adjacency_list.hpp>


This class takes seven template parameters. Therefore, some compilers will struggle with it.

Some compilers will accept this:
boost::adjacency_list myGraph;


Some other compilers will only accept this (among others Visual Studio 2005):
boost::adjacency_list<> myGraph;

Declaration

  template <class OutEdgeListS = vecS, // a Sequence or an AssociativeContainer
            class VertexListS = vecS, // a Sequence or a RandomAccessContainer
            class DirectedS = directedS,
            class VertexProperty = no_property,
            class EdgeProperty = no_property,
            class GraphProperty = no_property,
            class EdgeListS = listS>
  class adjacency_list


Tutorial

Open questions

  • How to std::cout a graph with all its vertices and edges?

External links

  • The Boost documentation on this class:
http://boost.org/libs/graph/doc/adjacency_list.html

last edited (March 7, 2007) by bilderbikkel, Number of views: 1776, Current Rev: 8 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.