">num_regimes</span><span class="p">,</span> <span class="n">T</span><span class="p">))</span>  <span class="c1"># range is [0,1)!</span>

            <span class="n">parents_opt</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># [None] * num_regimes</span>
            <span class="n">results_opt</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># [None] * num_regimes</span>
            <span class="n">links_opt</span> <span class="o">=</span> <span class="