User Guide


Modifying Node Properties

After you add nodes to a graph and connect them with edges, inspect the nodes to ensure the data flowing through the graph has correct types. Some data types are dictated by the
Intel® oneAPI Threading Building Blocks
) flow graph node types themselves or by the logic the graph represents. Because the data flows through nodes and edges are connected to ports, the data types are managed at the port level. The default node data types are
for most ports and
for nodes that expect this type of data.
To edit node properties:
  1. Select a node.
  2. In the
    Port Information
    pane of the
    tab, change the
    Data Type
    of a port by selecting its type and editing the field.
    change data type of a port
    For certain nodes, such as a
    , only the input port data types can be modified, and the output data type is automatically generated when you update the input port data types.
    change port information for certain data types
  3. Select a node on the canvas to see its properties in the
    tab. This property pane displays all properties for a given node type. The properties that are not set for the selected node type are shown in a darker color. In the figure below, you can see that the
    property is not set for the
    node properties tab
    Some of the properties for the nodes are set automatically and tied to the node type. Such properties are not available for editing and the
    Node Properties
    tab enforces these rules. For example, you cannot change the
    Node Type
    , but you can edit the
    Node Weight
    and the
    Node Name
    • The
      Node Weight
      is a placeholder that indicates the computational complexity of a node. The larger the number, the more computationally intensive the node is with respect to the other nodes in the graph. This number is also used by the C++ code generator to create a busy loop in the empty body that is created for each node. See the Generating C++ Stubs section for more details.
    • The
      Node Name
      is a unique name automatically assigned to each new node. You can change it to something meaningful. This name is a variable name of the object generated for the node by the C++ code generator.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at