Add getAllPaths to MD graph interface