Extract Subproblems

extract_subproblems_and_their_dependencies(diagram, aux_discriminator)

Get all problem dependencies and their setup and aux point sets.

Parameters:
  • diagram (Diagram) – The Diagram dataclass containing the graph, problem, dependencies and setup graph

  • rules – The rules to use for solving

  • aux_only – If True, only return dependencies that have nonempty aux sets

  • return_added_deps – If True, also return the added dependencies

Returns:

Tuple of (dependencies, setup_points, aux_points) If return_added_deps is True:

Tuple of (dependencies, setup_points, aux_points, added_dependencies)

Return type:

If return_added_deps is False