def getFloydPath(self, parentMap, u, v, path=[]):
        """
            recursive procedure to get the path from parentMap matrix
        """
        path.append(v)
        if u != v and v != -1:
            self.getFloydPath(parentMap, u, parentMap[u][v], path)

            recursive procedure to get the path from parentMap matrix
        
recipes/Python/579141_Simple_Graph_library/recipe-579141.py