def eachSubPath(self):
        for x in range(1, len(self.links) + 1):
            yield Path(links=self.links[:x])
Iterate over each path which is a prefix of this path.
dataset/ETHPy150Open twisted/imaginary/imaginary/idea.py/Path.eachSubPath