def next(self):
	paths = self.paths
	if (self.isatend or
	    self.stop is not None and self.pos >= self.stop):
	    raise StopIteration
	path = []
	for row, col in enumerate(self.idxs):
	    sr = self.srs[row]
	    if sr is None:
		sr = self.mod.sortedrels(paths.IG, path[-1])
		self.srs[row] = sr
	    rel, dst = sr[col]
	    path.append(rel)
	    path.append(dst)
	rp = self.mod.Path(paths, path, self.pos, paths.output, paths.srcname)
	self.pos += 1
	while row >= 0:
	    self.idxs[row] += 1
	    if self.idxs[row] < len(self.srs[row]):
		break
	    if row > 0:
		self.srs[row] = None
	    self.idxs[row] = 0
	    row -= 1
	else:
	    self.isatend = 1
	    self.pos = 0
	return rp
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/Path.py/PathsIter.next/original