I have the following graph: https://gremlify.com/vxkibjtoz3b
if u can't open the link the graph is lloking the following:

You can see there 2 queries. The first one:
g.V().out("r").as("a").V().out("rl_pre").out("rl").as("b").where("a", eq("b")).by("attr").select("a", "b")
gives me all vertices which share the same "attr" value. In the second query:
g.V().out("r").as("a").V().hasLabel("start").project("lower_pre", "lower"). by(__.out("rl_pre").valueMap("lower_pre_prop")) by(__.out("rl_pre").out("rl").as("b").where("a", eq("b")).by("attr").valueMap("attr"))
I tried to combine the first query with "project" and "valueMap" to get some values of former attributes. Unfortunately the second query isn't working. Does anyone of know who to get properties of former Vertices + the properties in the graph traversal end vertex in combination with the "where" clause?
Expected output
I expect to get all vertex pairs ("upper and lower) which share the same property value for ("attr") + I want to have the "start_attribute" value from the start vertex
Kind regards Stefan
V(all vertices) will be applied to the results ofg.V().out('r'). You may want tofoldfirst to flatten all of the traversals. Can you sat a bit more about the exact output you are looking to produce?