There is no requirement to get back to the starting point. This applet has only one class which extends the Applet class. N is the number of nodes in the graph. It can be set using the applet parameter NumberOfNodes. N X N holds information about the graph.
Length expresses the length of each link in the graph.
The seed for the random number generator. The default value is 1. The graph is randomly generated, using the RandomSeed and NumberOfNodes parameters. These parameters are set in the Applet's init method. The number of nodes in the graph.