basic building of graphs
this works, but is slow. 7 mins for all words in dict