Construction of sparse visibility graphs