adj_list_edge_list_set.cpp 685 B

12345678910111213141516171819202122232425
  1. // Copyright 2006 The Trustees of Indiana University.
  2. // Use, modification and distribution is subject to the Boost Software
  3. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // Authors: Douglas Gregor
  6. // Andrew Lumsdaine
  7. // Make sure adjacency_list works with EdgeListS=setS
  8. #include <boost/graph/adjacency_list.hpp>
  9. #include <boost/test/minimal.hpp>
  10. using namespace boost;
  11. typedef adjacency_list<vecS, vecS, undirectedS, no_property, no_property,
  12. no_property, setS> GraphType;
  13. int test_main(int,char*[])
  14. {
  15. GraphType g(10);
  16. add_vertex(g);
  17. add_edge(0, 5, g);
  18. return 0;
  19. }