Output arcs and labels to file.