// This code is from "Algorithms in Java, Third Edition," // by Robert Sedgewick, Addison-Wesley, 2003. interface AdjList { public int beg(); public int nxt(); public boolean end(); }