>This function calculates the distance matrix from a connected graph represented as an adjacency matrix using an available method.”</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>A</strong> (<em>2-D array</em>) – 2-D square adjacency matrix</p></li>
<li><p><strong>method</strong> (<em>str</em>) – Method for calculating distances between nodes. default is shortest_unweighted_path. Options are 