Take a vertex from a set of connected vertices #3448
Replies: 3 comments 5 replies
-
What is the query you used? How to recognize the vertex you want? |
Beta Was this translation helpful? Give feedback.
-
In gremlin console, your query only returns a single vertex if the (key, value) pair is unique among the vertices. If many vertices have the same (key, value) pair, you have to add a second filter .has(key2, value2) to get the vertex you want. Alternatively, the visualization tool that you use (which one?) might have some settings that result in additional queries. |
Beta Was this translation helpful? Give feedback.
-
If I am understanding correctly, your problem is that Try this: Alternatively, you can first get all vertices by gremlin query, and then write your custom code to separate the two clusters |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When i search vertex with a property, it return for me a set of connected vertices. And it takes quite a time, while i need onle one of them.
Note: maybe there are other vertices that are not connected and i need them too
Beta Was this translation helpful? Give feedback.
All reactions