import six


def _minimize_peak_memory_naive(graph):
  """Computes the naive schedule [0, 1, 2, ...].

  Args:
    graph: an mtf.auto_mtf.graph_interface.GraphInterface.

  Returns:
    an iterable of integers representing the schedule.
  """
  return six.moves.range(graph.get_num_operations())