pub fn solve(
nodes: HashMap<String, Node>,
type_parents: ToscaTypes,
) -> PyResult<RequirementMatches>
Expand description
Finds missing requirements for the given topology. (Main Python entry point)
§Arguments
nodes
- The topology’s nodes.type_parents
- ToscaTypes HashMap of type ancestors
§Returns
A RequirementMatches HashMap of the found matches.
§Errors
This function will return an error if the topology can’t converted to an Ascent program.