title: Does the igraph package for python contain a method to compute the distance matrix of a graph?
body: <p>The R version of the igraph package contains the <code>distances</code> function which, according to the documentation, returns the distance matrix of the graph passed to it.</p>
  <p>However, I couldn't find this function or a similar one in the python version of the package. The only provided function I could find is <code>Point.distance</code> which in my understanding of the documentation only calculates distances of two points in a 2D plane but not a network graph.</p>
  <p>Is there a function that returns the distance matrix of a graph in the python version of this package?</p>
  <p>Essentially, what I am looking for is the following:</p>
  <pre><code># create the graph
  graph = Graph(n=5, edges=[(0,1), (1,4), (2,3), (2,4), (2,5) , (3,5), (4,0)], directed=False)
  
  # pseudo code to calculate distance
  dist_matrix = distances(graph)
  </code></pre>
  <p>Any help is much appreciated.</p>