Boost logo

Boost Users :

From: Jeff Holle (jeff.holle_at_[hidden])
Date: 2003-03-14 02:27:32


Discovered the answer to my question.
The value_type of edge_iterator is an edge_descriptor.

Also discovered my code problem.
An edge_descriptor does not have a operator< method.

Jeff Holle wrote:

> What is the relationship between an "edge_descriptor" and what an
> edge_iterator dereferences?
>
> I'm having problems coding the following:
>
>
> myFunct(GraphT& g)
> {
> typedef graph_traits<GraphT>::edge_descriptor Edge;
> typedef map< Edge, Edge_Datum> Edge_Data;
> Edge_Data edge_data;
> graph_traits<GraphT>::edge_iterator ei, ei_end;
> for(tie(ei,ei_end)=edges(graph);ei!=ei_end;++ei)
> edge_data.insert( make_pair(*ei, Edge_Data())); << blows up here.
> }
>
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> <http://rd.yahoo.com/M=245454.2994396.4323964.2848452/D=egroupweb/S=1705006788:HM/A=1457554/R=0/*http://ipunda.com/clk/beibunmaisuiyuiwabei>
>
>
>
> Info: <http://www.boost.org>
> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/>.


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