Alex Rivera | Logout

Get specific edge with boost::graph

Asked 2011-01-19T11:52:27.963
30

I'm using boost::graph and I have two vertex_descriptors. What is the quickest way to get the edge between them, without iterating over all the edges?

Edit
Report

1 Answer

7

There is also a function boost::lookup_edge() in boost/graph/lookup_edge.hpp; that function dispatches to either edge() or out_edges() and a search based on the particular graph type you are using.

answered 2011-01-21T05:34:03.807

Your Answer