Why not just `vertex.getNumBranches()--`?