Algorithms involving graphs, implemented in JAVA.