How to create a unique id for set of nodes. I know there is a option for uuid, but that is specific to nodes, but I'd prefer to have an id for collection of nodes.
For example:
John, Mohammed, Kandhan and Ranveer are employees of department "Creators";
Annie, Baig, Valli, and Anushka are employees of department "Inventors"
I want a seperate id for creators and inventors.
Also if possible I would like to have all these department under company "X" and a separate id for that as well.
But what if I have multiple creators department.
A better example could be what if there is two families with 4 people each and all have appropriately same name as the other.
John and Jessy are husband and wife.
Mark and Mona are their children.
An another family with all same names, whom comes under same ancestors (in a family tree).
Here I would like to have a unique difference between families (not by ancestors, theoretically that could also be same to an extent)
You're going to have to find a way to distinguish between the two groups. Forget the database for a second, on paper, given the information, how do you manually keep track of the two groups? Is there something else about them? Yes you can eventually assign a surrogate id, but you know best on how to distinguish them.
Instead of two attributes for Mark I'd use two relationships to a Family type of node. This Family node become the common entity linking family members together. In Mark's case he's a member of two families. You can generate UUID for the family node to keep them unique from the other families in your database.