From: Manish Mangal (mmangal_at_[hidden])
Date: 2005-03-29 19:33:05
I am not able to use set_property function for reverse Graphs. I am using
C++7.0 on .Net2003 compiler.
I read an earlier question posted at
This sounded similar to my problem.
The solution posted by Jeremy
runs fine on my machine . So I decided to use get_property instead of
set_property as suggested in the solution. This did not solve my problem
So I took Jeremy's solution and replaced subgraph by reverse_graph.
Even that code generated:
error C2784 could not deduce template argument list..
The code is:
using namespace boost;
typedef adjacency_list<vecS, vecS, directedS,no_property,
property<graph_name_t, string> > graph_t;
get_property(g, graph_name) = "graph";
std::cout << "name: " << get_property(g, graph_name) << std::endl;
typedef reverse_graph<graph_t> reverse_graph_t;
reverse_graph_t sg = reverse_graph_t(g);
get_property(sg, graph_name) = "Reverse graph";
std::cout << "name: " << get_property(sg, graph_name) << std::endl;
Can anyone suggest how to make this work?
1-425.821.8454 ext. 136
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk