Representing Equations on a Graph