|
Boost Users : |
Subject: Re: [Boost-users] Accessing the edge through edge descriptor with bundled properties
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-10-24 17:11:47
On Mon, 24 Oct 2011, giridhar wrote:
> Hello All,
> I have to access an edge in a vector called border_edge through an edge descriptor. For example
>
> for( vector<Edge>::iterator j=border_edge.begin();j!=border_edge.end();++j)
> {
> Edge e = t1[*j]; // I am getting error saying that No suitable conversion for Edge to Edgep exits
> }
Assuming your graph is named t1, it looks like you are getting your edge
property, but trying to put into a variable whose type is your edge
descriptor. The edge descriptor is just *j.
-- Jeremiah Willcock
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