span class="n">from_transition_function</span><span class="p">(</span><span class="n">states</span><span class="p">,</span> <span class="n">identity_transition</span><span class="p">)</span>
<span class="gh">Out[6]: </span><span class="go"></span>
<span class="go">         state_1  state_2</span>
<span class="go">state_1      1.0      0.0</span>
<span class="go">state_2      0.0      1.0</span>
</pre></div>
</div>
</div>
<div class="section" id="using-a-transition-matrix">
<h3>Using a transition matrix<a cl