简体   繁体   中英

Graph database two nodes have a relationship with another node ONLY if both are true

like this: https://i.imgur.com/MrA6zQP.png

A and B are related to C but ONLY if both A and B are true.

I'm currently using Neo4J as my graph database, but I'm not sure it has this capability. I'd be open to switching to a different graph database if it meant that the free version had this capability.

In Neo4j (and any other graph database I guess) a relation exists or does not exist. As long as we're not using quantum computing, it's binary. But, you can definitely retrieve paths, or create/project virtual graphs based on conditions, which could include the one you mention.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM