© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Apache TinkerPopAT
Apache TinkerPop•2y ago•
13 replies
RN

Is it possible to walk 2 different graphs using custom TraversalStrategy in Gremlin?

I have 2 different graphs in 2 different Neptune cluster. Both of them can have few reference vertices referring to vertex in other graph. e.g. As we walk through graph A and reach a reference vertex (referring to vertex in graph B), we should be able to traverse normally further inside Graph B and get the results of the query. Basically Graph A + Graph B should act as single virtual graph.
Solution
At this time, there would be no easy way to do this and I don't think a custom
TraversalStrategy
TraversalStrategy
would help in any way i can imagine. Maybe the closest thing I can imagine would be to subgraph the two graphs with their references vertices and merge them to a single TinkerGraph in your application and then run additional queries on that directly. I'm not sure that suits a lot of use cases we hear about though in relation to this feature so that suggestion may not be helpful. cc/ @Dave Bechberger
Jump to solution
Apache TinkerPop banner
Apache TinkerPopJoin
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,376Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Multiple Graphs in Gremlin Server?
Apache TinkerPopATApache TinkerPop / questions
3y ago
@GremlinDSL support in the GremlinLangScriptEngine
Apache TinkerPopATApache TinkerPop / questions
3y ago
Is it possible to extract the requestId of an Amazon Neptune Gremlin query via gremlin-driver?
Apache TinkerPopATApache TinkerPop / questions
3y ago
3.6.2 gremlin-server possible memory leak
Apache TinkerPopATApache TinkerPop / questions
3y ago