Work-function for breadth_first_search(). A vertex is visited if it is active (the level on the vertex matches the current level of the paradigm. Active vertices update their neighbors with new BFS level and parent information. Returns true if vertex was active, false otherwise. More...
Public Member Functions | |
template<class Vertex , class GraphVisitor > | |
bool | operator() (Vertex &&v, GraphVisitor &&graph_visitor) const |
Public Types | |
using | concurrency_model = sgl::weak_concurrency |
Work-function for breadth_first_search(). A vertex is visited if it is active (the level on the vertex matches the current level of the paradigm. Active vertices update their neighbors with new BFS level and parent information. Returns true if vertex was active, false otherwise.