Match Quadratic Functions and Graphs