Hi Andrew,
2010/2/8 Andrew Sutton
The code below crashes (segfault) in the max_flow() function. Could you
tell me what am I doing wrong ?
It seems to work when I set a capacity capacity[p2.first] with a value
smaller than 10 (capacity[p.first]). Am I missing something? Do I correctly
use the reverse property_map?
Where precisely does it crash?
Here is the backtrace from gdb (sorry ...). Eric, no I did not forget to add
vertices in my graph. It is build in another function that I removed for
clarity. I have 333 vertices in my graph, and 4 edges. Do I correctly use
the edge_reverse property_map?
Regards,
Olivier
Program received signal SIGSEGV, Segmentation fault.
#0 0x08075839 in
boost::detail::kolmogorov,
boost::no_property> > > > >, boost::property,
boost::no_property> > >, boost::no_property, boost::listS>,
boost::adj_list_edge_property_map,
boost::no_property> > > const, boost::edge_capacity_t>,
boost::adj_list_edge_property_map,
boost::no_property> > >, boost::edge_residual_capacity_t>,
boost::adj_list_edge_property_map,
boost::detail::edge_desc_impl const&,
unsigned int, boost::property,
boost::no_property> > > const, boost::edge_reverse_t>,
boost::vec_adj_list_vertex_property_map,
boost::no_property> > > > >, boost::property,
boost::no_property> > >, boost::no_property, boost::listS>,
boost::adjacency_list,
boost::no_property> > > > >, boost::property,
boost::no_property> > >, boost::no_property, boost::listS>*,
boost::detail::edge_desc_impl,
boost::detail::edge_desc_impl&,
boost::vertex_predecessor_t>,
boost::vec_adj_list_vertex_property_map,
boost::no_property> > > > >, boost::property, boost::no_property> > >, boost::no_property, boost::listS>,
boost::adjacency_list,
boost::no_property> > > > >, boost::property,
boost::no_property> > >, boost::no_property, boost::listS>*,
boost::default_color_type, boost::default_color_type&,
boost::vertex_color_t>,
boost::vec_adj_list_vertex_property_map,
boost::no_property> > > > >, boost::property,
boost::no_property> > >, boost::no_property, boost::listS>,
boost::adjacency_list,
boost::no_property> > > > >, boost::property,
boost::no_property> > >, boost::no_property, boost::listS>*, long, long&,
boost::vertex_distance_t>,
boost::vec_adj_list_vertex_id_map,
boost::no_property> > > > >, unsigned int> >::max_flow() ()
#1 0x08063fab in main ()
Andrew Sutton
andrew.n.sutton@gmail.com
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users