Scheduling in Delay Graphs (with Applications to Optical Networks)