Java doesn't allow to do --vertex.getNumBranches()