code: def apsp_floyd_warshall(A):
      """Runs the Floyd Warshall algorithm to return an nxn matrix which computes the
      all pairs shortest paths. Here 0's denote non-edges."""
      dist = deepcopy(A)
      # Create an initial matrix with infinity for all non-edges and zero on the diagonals.
      dist[dist == 0] = np.inf
      np.fill_diagonal(dist, 0)
      return apsp_floyd_warshall_costs(dist)
  
file_path: dragonfly/dragonfly/utils/graph_utils.py
imports: from copy import deepcopy
  import numpy
  from scipy.linalg import eigh
  from .general_utils import get_nonzero_indices_in_vector
label_desc: Use image node_id 9 for calling a global function with example usage: apsp_floyd_warshall(A) and returns: apsp_floyd_warshall_costs