def adjacency(indices, length):
	"""Given a list of indices and length of the output list,
	Return a list of 1s for adjacencies and 0s for non-adjacencies."""
	return [ int(i in indices) for i in range(length) ]