def set_constraints(self, name, after=None, before=None):
        self._register(name)

        if after is not None:
            self._register(after)
            if not after in self.before[name]:
                self.before[name].append(after)

        if before is not None:
            self._register(before)
            if not name in self.before[before]:
                self.before[before].append(name)
Set the given name to be scheduled before the `before` argument, and
dataset/ETHPy150Open enthought/depsolver/depsolver/utils.py/Scheduler.set_constraints