I'm creating a database of math diagrams (in a certain category), and need to search for every square say like the above. But these diagrams can get huge maybe 5 x 5 squares, yet they remain relatively sparse.
How can I search for a subgraph using neo4j? It would be great to use Neo4j for this. Thank you.
I already have diagrams like the above being programatically put into a Neo4j database. It's awesome!
So any query's you have I can try out. I'd also like to search using regex template on each label if possible. So for instance $\text{Hom}({var}, {var})$
where {var}
can be anything. That way diagrams that are the same except for a relabeling will be counted as equal.