Hmmm, seems bad that you had to do this. I will check getNeighbors can return a Collection instead of an Iterable (so that you can get the size).