Matching Graphs With Polynomial Functions