getAllPaths