7.2.1.2. add_func_edges¶
-
add_func_edges
(dsp, fun_id, nodes_bunch, edge_weights=None, input=True, data_nodes=None)[source]¶ Adds function node edges.
Parameters: - dsp (schedula.Dispatcher) – A dispatcher that identifies the model adopted.
- fun_id (str) – Function node id.
- nodes_bunch (iterable) – A container of nodes which will be iterated through once.
- edge_weights (dict, optional) – Edge weights.
- input (bool, optional) – If True the nodes_bunch are input nodes, otherwise are output nodes.
- data_nodes (list) – Data nodes to be deleted if something fail.
Returns: List of new data nodes.
Return type: