Moved CategoryHopCriteria to the app and implemented its getVertices() method.