如何移除/删除节点& java中Neo4j的关系?
我开始学习Neo4j。我对此有一个基本的想法。也许我的问题看起来很愚蠢,但在学习时从别人那里了解更多信息很重要。
我有一个小小的疑问,比如有一次,如果我们创建一个包含一些节点和关系的图表,最高级别为 5。然后,如果我删除或移除级别 3 中的任何节点,那么包含剩余节点和关系的图表会如何。对图表有影响吗?
还有一个问题是如何移除或删除 Neo4j 中的特定节点?
我在使用 Neoclipse 插件(Windows 0.4.1 版本)的 eclipse 3.6 中遇到问题。谁能告诉我eclipse 3.6的安装和插件的过程吗?这对我来说会更有帮助。
I started learning Neo4j. I have a basic idea about it. May be my question looks silly but its important to know much more from others while learning.
I have small doubt, like once if we create a graph with some nodes and relationships up to a level 5. Then if I have delete or remove any node in the level 3, so how would be the graph with remaining nodes and relationships. Does it affect the graph?
One more is how to remove or delete a particular node in Neo4j?
I have problem in eclipse 3.6 with plugin of Neoclipse(Windows 0.4.1 version). Can any one tell me the procedure of installing and plugin with eclipse 3.6? It would be more helpful for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以在图中自由添加和删除节点,并且节点不必连接。因此,对图的更改是否会创建断开连接的节点或子图并不重要。您可能希望在索引中跟踪它们,既为了直接查找,又为了不丢失断开连接的节点,因为它们无法通过遍历到达。
删除节点首先需要删除与该节点的所有关系。
Neoclipse 目前有点过时,与 Neo4j 的早期 1.1.x 版本兼容。一些许可问题已经解决,应该很快会引起一些关注。
Nodes can be added and removed freely from the graph, and nodes don't have to be connected. So it doesn't matter if changes to your graph create disconnected nodes or sub-graphs. You'll probably want to keep track of them in an index, both for direct look-up and to not lose disconnected nodes since they can't be reached by a traversal.
Deleting a node first requires that all relationships to the node have been deleted.
Neoclipse is a little out of date at the moment, compatible with earlier 1.1.x versions of Neo4j. Some licensing issues have been worked out and that should get some attention soon.