code: public static int[][] getMatrix(IAtomContainer container) {
          int[][] conMat = AdjacencyMatrix.getMatrix(container);
          int[][] topolDistance = PathTools.computeFloydAPSP(conMat);
  
          return topolDistance;
      }
docs: Returns the topological matrix for the given AtomContainer.
  
  @param  container The AtomContainer for which the matrix is calculated
  @return           A topological matrix representating this AtomContainer