Java Version of Text-Based Graph Theory Program