init_queue

SamsBnB.init_queue(top_results, top_scores)[source]

Initializes the branches queue, starting from the forced model and yielding all possible one-term extensions.

Parameters

top_resultslist(node)

A list of top result nodes from initialization. Sorted by top_scores (lowest first).

top_scoresnp.ndarray(1d)

The corresponding scores, sorted lowest first.

Returns

branchesiterable or generator

The potential branches from all the provided nodes.