(self)
return motions
Return the sequence of motions used to reach this node.
Return the sequence of motions used to reach this node.
Return the sequence of motions used to reach this node .
def reconstruct_path(self):
        """Return the sequence of motions used to reach this node."""
        motions = list()
        node = self
        while node.came_from is not None:
            motions.insert(0, node.came_by_motion)
            node = node.came_from
        return motions
def reconstruct_path ( self ) : motions = list ( ) node = self while node . came_from is not None : motions . insert ( 0 , node . came_by_motion ) node = node . came_from return motions