Boost logo

Boost Users :

Subject: [Boost-users] [BGL] Writing an edge_iterator for add_edges in CSR graph
From: Johan Oudinet (johan.oudinet_at_[hidden])
Date: 2011-04-08 07:50:59


I'm trying to write an edge_iterator in order to load a CSR graph from
a GraphViz by using the add_edges method.

So far, I successfully write a edge_iterator so you can iterate on it
and dereference it to get either a pair of vertex_descriptor or a edge

However, if it try to use this iterator as arguments for the method
add_edges of CSR graph, I got cryptic errors and I don't know how to
solve them :-/

You can find the code that produce these errors here:

I will appreciate any help to understand what is going wrong or to
write an edge_iterator that actually works with add_edges.



P.S.: I use Boost graph library 1.42 installed from Ubuntu 10.10 repositories.

()  ascii ribbon campaign - against html e-mail
/\   - against proprietary attachments

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at