stdgraph / P1709

P1709: C++ Graph Library Proposal
6 stars 0 forks source link

Add view overloads that only return vertex_id without vertex_reference #47

Open pratzl opened 10 months ago

pratzl commented 10 months ago

Some algorithms only require a vertex_id, not a vertex_reference (a dependency of getting vertex or edge values). Triangle counting is one of those.

We should provide view overloads that support returning a vertex_id without the vertex_reference. The following are impacts to the existing design:

Should this also affect dfs, bfs and topological_sort views?

pratzl commented 10 months ago

incidence(g,uid) and neighbors(g,uid) will be identical in behavior. Both will be implemented for symmetry and avoid confusion.