Graph class
class to create a graph object
A graph is the ultimate storage for a task dependency graph and is the main gateway to interact with an executor. This class is mainly used for creating an opaque graph object in a custom class to interact with the executor through taskflow composition.
A graph object is move-only.
Constructors, destructors, conversion operators
Public functions
- auto operator=(const Graph&) -> Graph& deleted
- disabled copy assignment operator
- auto operator=(Graph&&) -> Graph&
- assigns a graph using move semantics
- void clear()
- clears the graph
- auto size() const -> size_t
- returns the number of nodes in the graph
- auto empty() const -> bool
- queries the emptiness of the graph
- auto begin() -> auto
- returns an iterator to the first node of this graph
- auto end() -> auto
- returns an iterator past the last element of this graph
- auto begin() const -> auto
- returns an iterator to the first node of this graph
- auto end() const -> auto
- returns an iterator past the last element of this graph