Network | |||||||
---|---|---|---|---|---|---|---|
karate | |||||||
football | |||||||
polblogs | |||||||
LRF |
查询包含特定节点的社区(如要求返回所有包含id
为1
的节点的社区)
match (n) where n.name = '001'
with labels(n) as l
match (n) where labels(n) = l
return n
查询特定规模的社区(如要求返回所有节点数量⼤于100
的社区)
match (n) with n.name as name, labels(n)[0] as label
with distinct label, count(*) as `count`
match (n) where labels(n)[0] = label and `count` > 100 return distinct n