Functions for resolving dependencies.
Get number of prerequisite names for each name in dependencies.
- sfepy.base.resolve_deps.remove_known(deps, known)¶
Remove known names from dependencies.
Resolve dependencies among equations so that smaller blocks are solved first.
The dependencies are given in terms of variable names.
The dependencies as a dictionary with names as keys and sets of prerequisite names as values.
The list of blocks in the order of solving. Each block is a list of names.
- sfepy.base.resolve_deps.solvable(deps, names)¶
Return True if names form a solvable block, i.e. the set of names equals to the set of their prerequisites.
- sfepy.base.resolve_deps.try_block(deps, num)¶
Return generator of lists of solvable blocks of the length num.