Hi,
See the attached image for a simplified version of my network. The red edges contain a count of the green edges that connect the same nodes. This was achieved by a very smart query (designed by Daniel Kuppitz in an earlier post):
g.V().as('o').outE('red').as('re').inV().map(inE('green').where(outV().as('o')).values('relativeStrength').mean()).as('rs').select('re').property('avgRelStrength', select('rs'))
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d21543e2-8122-468d-a498-562287a00aba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d21543e2-8122-468d-a498-562287a00aba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seV%2Bf71v%3DJgVX5C8U1%3D2agq1%3DYUa5kUjGska_3mCUZuLeg%40mail.gmail.com.
['Edge:', {'id': '8cb0d378-8bd6-adf8-9889-cb17cd0d5f2f', 'inV': '1eb0d378-7bad-21ac-a8d0-bef91e9caaab', 'inVLabel': 'o', 'label': 'red', 'outV': 'b0b0d378-7b57-77a4-a5b3-784b16fe7126', 'outVLabel': 'o', 'properties': {'avgRelStrength': 1500.0}}, 'Edge:', {'id': '08b0d378-8b5e-eb2b-4883-3e7ae188f0e8', 'inV': 'a2b0d378-7afd-17db-30a6-c0f1ac0845c2', 'inVLabel': 'o', 'label': 'red', 'outV': 'b0b0d378-7b57-77a4-a5b3-784b16fe7126', 'outVLabel': 'o', 'properties': {'avgRelStrength': 150.0}}, 'Edge:', {'id': '80b0d378-8aec-de78-b0ea-c1e59a322e00', 'inV': '1eb0d378-7bad-21ac-a8d0-bef91e9caaab', 'inVLabel': 'o', 'label': 'red', 'outV': '36b0d378-7aa4-2ac1-a4a4-9c1e17ba8384', 'outVLabel': 'o', 'properties': {'avgRelStrength': 15.0}}, 'Edge:', {'id': '4eb0d378-8a53-2a5e-a7aa-007163f3ec7c', 'inV': 'a2b0d378-7afd-17db-30a6-c0f1ac0845c2', 'inVLabel': 'o', 'label': 'red', 'outV': '36b0d378-7aa4-2ac1-a4a4-9c1e17ba8384', 'outVLabel': 'o', 'properties': {'avgRelStrength': 1.5}}]
.where(bla().as('x')) == .filter(bla().where(eq('x'))).where(as('x').bla()) == .where(eq('x')).filter(bla()).where(as('x').bla().as('y')) == .where(eq('x')).filter(bla().where(eq('y')))
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d21543e2-8122-468d-a498-562287a00aba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seV%2Bf71v%3DJgVX5C8U1%3D2agq1%3DYUa5kUjGska_3mCUZuLeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAO%3DOAKL2_Q-OCjkR857Y%3D2FqZa2ph8oBvZDKa-3KibdzJMejZg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d21543e2-8122-468d-a498-562287a00aba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seV%2Bf71v%3DJgVX5C8U1%3D2agq1%3DYUa5kUjGska_3mCUZuLeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAO%3DOAKL2_Q-OCjkR857Y%3D2FqZa2ph8oBvZDKa-3KibdzJMejZg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seWVSjwPTdXF%2BEB7uHvWNS1ZmW3qE64sBa5t3nzT2NmDjQ%40mail.gmail.com.