Piecewise Functions From Graph