fixed g.query().ids().vertices(). I was anding when I should have been oring.