Intel® Threading Building Blocks (Intel® TBB) Version 3 Update 5 introduced the class graph as a Community Preview (CP) feature. There is an introductory post that provides an overview of the class and the nodes that can be used with it. You can download the open-source version of this release at www.threadingbuildingblocks.org and are encouraged to provide feedback about the graph via the forum. In a previous post, I provided an example that created a simple message graph. In this post, I describe a more complicated example that highlights some interesting features of the API.



This example will demonstrate:





How to use the graph's run function.

How to mix explicit puts with explicit edges

The non-greedy nature of the join_node