I have employee hierarchy data with
MATCH (user:Employee)
MATCH (manager:Employee )
MERGE(user)-[rep:REPORTSTO] -> (manager) where user.managerId=manager.userId;
I want to add two more properties to each node: left and right. The values are to be populated as per the nested set algorithm (image in this question)
How can I do this with cypher?