Code to calculate the diameter of a graph, written in Java for CSCI 5454.