Writing Polynomial Functions from their Graphs