예제 #1
0
 def findSubpath(self, path, A, B):
     path = deepcopy(path)
     newpath = self._findSubpath(path, A, B)
     if newpath is None:
         path.invert()
         newpath = self._findSubpath(path, A, B)
     return newpath
예제 #2
0
	def findSubpath(self, path,A,B):
		path = deepcopy(path)
		newpath = self._findSubpath(path,A,B)
		if newpath is None:
			path.invert()
			newpath = self._findSubpath(path,A,B)
		return newpath