Empty Graph

33 views
Skip to first unread message

deeptree

unread,
Feb 10, 2012, 10:19:03 AM2/10/12
to Gremlin-users
Is this the proper result for Count?

I was considering a return value of 0 for an empty graph.

gremlin> Graph g = new TinkerGraph()
==>tinkergraph[vertices:0 edges:0]
gremlin> g.V.Count()
No such property: g for class: groovysh_evaluate
Display stack trace? [yN]

Pierre De Wilde

unread,
Feb 10, 2012, 11:48:55 AM2/10/12
to gremli...@googlegroups.com
Hey,


On Fri, Feb 10, 2012 at 4:19 PM, deeptree <api...@gmail.com> wrote:
Is this the proper result for Count?


It's case-sensitive:

gremlin> g.V.count()
==>0

HTH,
Pierre
Reply all
Reply to author
Forward
0 new messages