Finding Phase Shift From Graph