Text-Based Graph Theory Program written in Java