Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作为我的标题。首先,所有节点都已经被一个名为“degree”的属性索引,INT 类型,现在,我想获得按“degree”排序的前 n% 节点。所以,我想知道是否有一种简单快捷的方法来完成它,也许是通过索引查询......等等。
您可以使用 Cypher 查询:
START n=node(*) RETURN n ORDER BY n.degree ASC (or DESC) LIMIT 10
此查询将返回按度升序排列的前 10 个节点。