| Taskflow: A General-purpose Task-parallel Programming System

Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
tf::Graph Class Reference

class to create a graph object More...

`#include <taskflow/core/graph.hpp>`

## Public Member Functions
| Graph ()=default
| constructs the graph object
| ~Graph ()
| destroys the graph object
| Graph (const Graph &)=delete
| disabled copy constructor
| Graph (Graph &&)
| constructs a graph using move semantics
Graph & | operator= (const Graph &)=delete
| disabled copy assignment operator
Graph & | operator= (Graph &&)
| assigns a graph using move semantics
void | clear ()
| clears the graph
size_t | size () const
| returns the number of nodes in the graph
bool | empty () const
| queries the emptiness of the graph
auto | begin ()
| returns an iterator to the first node of this graph
auto | end ()
| returns an iterator past the last element of this graph
auto | begin () const
| returns an iterator to the first node of this graph
auto | end () const
| returns an iterator past the last element of this graph

## Friends
class | Node
class | FlowBuilder
class | Subflow
class | Taskflow
class | Executor

## Detailed Description

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.

The documentation for this class was generated from the following file:

- taskflow/core/graph.hpp