In schema, we have a vertex named “Customer” having attribute “age”
and the customers are connected to each other via edge “likes”.
Example: c1-(likes)->c2-(likes)->c3-(likes)->c4,c5
c5-(likes)->c6,c7
We want to make c1 as a primary profile since c1 has highest value for age attribute and connect rest of the vertices with c1
Example: c1-(likes)-> [c2, c3, c4, c5, c6, c7]
Please help in writing a generic query to achieve the above objective.