Word Problems to Graphs