Source of test_graph1.cpp


  1: //test_graph1.cpp

  3: #include <iostream>
  4: using namespace std;

  6: #include <boost/graph/adjacency_list.hpp>
  7: using namespace boost;

  9: int main()
 10: {
 11:     adjacency_list<> myGraph;
 12:     add_edge(1, 2, myGraph);
 13:     add_edge(1, 3, myGraph);
 14:     add_edge(1, 4, myGraph);
 15:     add_edge(2, 4, myGraph);
 16: }