find all vertices using a label

19 views
Skip to first unread message

Fairuz WAN ISMAIL

unread,
Nov 20, 2014, 4:02:37 AM11/20/14
to clojure-...@googlegroups.com
Hi guys,
Is it possible to query for all vertices with a specific label? I don't find any related method in the test suite.

Thanks and regards

Ray Miller

unread,
Nov 25, 2014, 5:54:58 AM11/25/14
to Fairuz WAN ISMAIL, clojure-...@googlegroups.com
I couldn't see a method in the Titan API docs for doing this. Do let me know if I've missed something in the Java API and I'll implement the corresponding function in the Clojure lib.

Ray.

--
You received this message because you are subscribed to the Google Groups "Clojure Titanium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-titani...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fairuz WAN ISMAIL

unread,
Dec 2, 2014, 11:08:45 PM12/2/14
to clojure-...@googlegroups.com, wmfairuz....@gmail.com
Hi Ray,

After digging around, I found out that below code will work to find by label.

(tv/find-by-kv tx :label label)

equivalent in gremlin is this:

g.query().has("label", "your-label").vertices()
Reply all
Reply to author
Forward
0 new messages