Hi! I need help to find best structure for my graph. In my project I have users, each user can create multiple graphs and each graph have nodes. Since users can create labels for nodes I don't want to keep graph name as label. I was thinking to have nodes with label USER, GRAPH and NODE and connect nodes with its' owner and the graph, to which it belongs. The problem in this case is that I don't know how to make complex queries like (node1)-[LINK1]->(node2)-[LINK2]->(node3)-[LINK3]->(node4) and require each node to be connected to it's graph and user. So I have two questions
- Is having Users and Graphs as nodes the best structure for graph in my case?
- If it is, how can I require each of nodes to belong to specific graph and user.