How to Write Interval Notation from a Graph