A graphical interface for the Gromov-witten theory of curves