Created graph of words