简体   繁体   English

图数据库两个节点只有在两者都为真时才与另一个节点有关系

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

like this: https://i.imgur.com/MrA6zQP.png像这样: https : //i.imgur.com/MrA6zQP.png

A and B are related to C but ONLY if both A and B are true. A 和 B 与 C 相关,但前提是 A 和 B 都为真。

I'm currently using Neo4J as my graph database, but I'm not sure it has this capability.我目前使用 Neo4J 作为我的图形数据库,但我不确定它是否具有此功能。 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.在 Neo4j(以及我猜的任何其他图形数据库)中,存在或不存在关系。 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.但是,您绝对可以根据条件检索路径或创建/投影虚拟图,其中可能包括您提到的那个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 图形数据库可以查询“与给定节点没有关系的节点”吗? - Can graph database query “nodes that a given node has no relationship with”? 如何使用密码查询获得图形数据库中两个节点之间的关系? - how to get a relationship between two nodes in graph-database using cypher query? 返回与另一个节点关系最密切的节点 - Return nodes with most relationship to another node 检查两个节点是否在恒定时间内有关系 - Check if two nodes have a relationship in constant time 仅显示关系中具有特定属性的节点 - Only show nodes that have a specific properties in relationship 在java中的neo4j嵌入式数据库中,我应该如何检查两个节点是否相互关联? - How should I check if two nodes have relationship with each other,in neo4j embedded database in java? 与图数据库中的第三个节点具有相同关系的节点 - Nodes with same relation to a third node in a graph database 如果我有Neo4j图形数据库,是否可以在两个主节点的子节点之间建立关系? - If I have a Neo4j graph database, can I build relationships between the sub-nodes of the two main nodes? 图形数据库-如何从关系中引用节点 - Graph database - how to reference Nodes from within Relationship 如何在图数据库中的节点之间创建两个关系 - How to create two relationship between nodes in graph DB
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM