Boost logo

Boost Users :

Subject: [Boost-users] [BGL] std::pair<edge_descriptor, bool> edge()
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2010-05-05 08:06:57


Dear all,

Am I right in believing that the bool returned in the function below is meant to signal to the user whether there is an edge between u and v or not?

std::pair<edge_descriptor, bool>
edge(vertex_descriptor u, vertex_descriptor v,
     const adjacency_list& g)

The only explanation that the online documentation provides for this function is: "Returns an edge connecting vertex u to vertex v in graph g." Perhaps somebody should amend that explanation...

Best,
--Hossein


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