MEDYAN.num_vertexwithstate
Return the number of vertices with state 2. Check the number of vertices with state 2. The number should be constant.