Defined in <
template<typename GraphView> GraphView make_random_dag(size_t n)
Generates a random directed acyclic graph (DAG).
The generated random directed acyclic graph will contain n vertices and potentially multiple components.
The returned view owns its underlying container.
- n: Number of vertices in the generated graph.
A view over the generated graph.
using view_type = stapl::graph_view<stapl::multidigraph<int>>; auto v = stapl::generators::make_random_dag<view_type>(256);