Many implementations of graphs in Java