ts
&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../index.html">Library index</a>
</div>
<div id="content">
<a id="source"></a>
<pre class="codeinput">
<span class="keyword">function</span> [w,rho] = mh(A)
<span class="comment">% [W,RHO] = MH(A) gives a vector of the Metropolis-Hastings edge weights</span>
<span class="comment">% for a graphb described by the incidence matrix A (NxM). N is the number</span>
<span class="comment">% of nodes, and M is the number of edges. Each column of A has exactly one</span>
<span c