Subgraph details

27 views
Skip to first unread message

venkat r

unread,
Nov 14, 2021, 8:29:46 AM11/14/21
to Gremlin-users
I'm looking for a tinkerpop gremlin query for below scenarios:
  • To get all VERTICES and EDGES of a subgraph / by a root vertex id
  • To delete a subgraph by root vertex id

HadoopMarc

unread,
Nov 16, 2021, 11:13:11 AM11/16/21
to Gremlin-users

The way you talk about subgraphs sounds like you mean a connected component, see:


You can put your root vertex id in the OLTP query of the recipe and get all vertices.

Is this what your are looking for (apart from the additional questions about EDGES and drop())?

Best wishes,    Marc

Op zondag 14 november 2021 om 14:29:46 UTC+1 schreef venkat....@gmail.com:
Reply all
Reply to author
Forward
0 new messages