><span class="p">):</span>
<span class="gp">   ...: </span>    <span class="k">if</span> <span class="n">source</span> <span class="o">==</span> <span class="n">target</span><span class="p">:</span>
<span class="gp">   ...: </span>        <span class="k">return</span> <span class="mi">1</span>
<span class="gp">   ...: </span>    <span class="k">return</span> <span class="mi">0</span>
<span class="gp">   ...: </span>

<span class="gp">In [6]: </span><span class="n">MarkovChain</span><span class="o">.</span><