graph-v2
graph-v2 copied to clipboard
Provide more ways to customize CPO `edges(g, uid)`
Currently, CPO edges(g, uid) has only two ways of customizing it:
- Either by providing a free function
edges(g, uid) - Or when
vertex_t<G>is aforward_rangeandfind_vertex(g, uid)is valid.
This is the nly CPO that does not allow a customization via a member function. Consider allowing one or both of the following customizations:
- Return
g.edges(uid)if valid. - Return
edges(g, g.vertices()[uid])if valid anddecltype(g.vertices())israndom_access_range.