code: def invalidate_files(self, direct_filenames):
      
      invalidated = self._scheduler.invalidate_files(direct_filenames)
      self._maybe_visualize()
      return invalidated
docs: Invalidates the given filenames in an internal product Graph instance.