Create graphs from scratch and simulate running different routing algorithms, Java