I might be confused about how db.schema() works. I see it as an architectural modeling view. I just was building two sub-graphs to explore whether a recursive or hierarchical model was best for what I'm creating. But when I did a db.schema call, expecting to see two sub-graphs, I saw connections that I'd not created. For this post, I created a very simple example to see if anyone can help. The hierarchy is head->body. The recursion is node->node. So, using db.schema, I'd expect a connection between the first two and a connection to itself for the recursive sub-graph as shown in the bottom right hand side of the pic below.
I did add a pic that hopefully will make this clear. The top upper left was a result of a simple CREATE then MERGE leaving me with two sub-graphs in the data. The nodes "node1" and "node2" are type "Node", the head and body are Head and Body types. The bottom left hand pic is the db.schema of these two sub-graphs.
So first confusion is why the CALL to db.schema gives the results on the bottom left hand corner? I just don't understand why these two sub-graphs are now connected by connections (2) I did NOT create. The only common association here is that these connections are spelled the same. That should NOT impact the schema, right???
The last pic on the bottom right hand side, is after I removed the recursion's connection (the "Node" type), and added 'x' to the CONNECTS_TO connection name. Exact same MERGE cypher call. That solved the issue in terms of now having a schema with a hierarchy and a recursion correctly modeling a graph with two sub-graphs. But that's not what I want nor need. Depending on the semantic intent of this connection, it may make sense to have it the same connection with a diff in the node types and path. But so far, that seems impossible to create. Which seems wrong to me.
So, any idea why this happens or where I messed up? I'm not a cypher expert but do know graphs and I know nothing in graph theory that makes connection names/attributes spelling significant.
Thanks for any thoughts/feedback/answers.