Boost logo

Boost Users :

Subject: [Boost-users] issues with setting properties on reverse graph
From: Mangal (mangalmanish_at_[hidden])
Date: 2009-11-17 00:12:19


Trying to set graph properties on reverse graph does not seem to be working.
I am using boost 1.40.0
A simple program where we set graph_name to "graph" on a reverse graph does
not work
int main()
{
  using namespace boost;
  using std::string;
  typedef adjacency_list<vecS, vecS, directedS,no_property,
    property<edge_index_t, int>,
    property<graph_name_t, string> > graph_t;

  typedef reverse_graph<graph_t> reverse_graph_t;

  graph_t g;
  reverse_graph_t sg = reverse_graph_t(g);
  std::string Name = "graph";
  set_property(sg, graph_name, Name) ;

  std::cout << "name: " << get_property(sg, graph_name) << std::endl;
  return 1;

}

Name comes out to be empty in this case.

any ideas???

-- 
View this message in context: http://old.nabble.com/issues-with-setting-properties-on-reverse-graph-tp26384490p26384490.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net