Hello :)

I’m pretty new to neo4j and I’m not sure of what I’m trying to do is possible.

I’m looking to use neo4j for a Mentoring program I am creating. People will be matched into groups of say 10 people based on various criteria, the criteria and people in a group can change but as an example lets say the ideal group will be made up of 7 Mentees, 2 Mentors and a moderator.

People have given details of their interests & age and I’ve created a Score relationship between each person based on how many interests they have and how close their ages are.

The part I’m struggling on is creating the groups based on these scores. Is there something that I can do in Cypher to take say 700 Mentees, 200 Mentors and 100 Moderators and split them into groups of 10 with the best possible score matches (7 mentees would be the maximum and could be less per group) but trying to match as many people as possible to minimise the manual aspect as much as possible.

I hope that makes sense.

Many thanks for any help!

Matt