8.2.15.1.77. get_sub_dsp_from_workflow¶
- Solution.get_sub_dsp_from_workflow(sources, reverse=False, add_missing=False, check_inputs=True)[source]
Returns the sub-dispatcher induced by the workflow from sources.
The induced sub-dispatcher of the dsp contains the reachable nodes and edges evaluated with breadth-first-search on the workflow graph from source nodes.
- Parameters:
sources (list[str], iterable) – Source nodes for the breadth-first-search. A container of nodes which will be iterated through once.
reverse (bool, optional) – If True the workflow graph is assumed as reversed.
add_missing (bool, optional) – If True, missing function’ inputs are added to the sub-dispatcher.
check_inputs (bool, optional) – If True the missing function’ inputs are not checked.
- Returns:
A sub-dispatcher.
- Return type: