I've combinations of data to save in database. For eg: A+B+C is one combination. B+C+D is other. Conditions: 1. A+B+C is same as B+A+C, C+B+A etc. 2. Also, each node will have an attribute called "weight". This depends on combination(In A+B+C combination, A 5g, B 6g and C 7g. Please note the third node will also have weight. Hence "weight" cannot be relationship).
Issues: First: I have decided to go with graph database. But don't know how to meet the above conditions. If I go with undirected graph, A-B-C is a combination. But it can't return B-A-C as other. Since there is no connection from A to C.
Second: "weight" can't be a property in node, Because weight differs as per the combination. Also it can't be a relationship. Since the last node will also have weight to be considered.
Please help me on this.