I think the preferred way to count all the vertices would be:
gremlin> g = TinkerGraphFactory.createTinkerGraph() ==>tinkergraph[vertices:6 edges:6] gremlin> gVcount() ==>6 gremlin> gEcount() ==>6
although, I think that on a very large chart, gV/E just breaks down, no matter what you do. On a very large graph, the best option for counting is to use a tool such as Faunus ( http://thinkaurelius.imtqy.com/faunus/ ) so that you can use the power from Hadoop to do the counts in parallel.
source share