Vector[] adjacency;

Your problem is when you create the array but I'm not sure you can use Generics with arrays. Why not make a Vector of Victors err Vectors? Roger!

Vector<Vector<Integer>>...