Now the graph is created and nodes are unique based on the word