Java 8  Wordgraph