Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

查询五个节点相互的关联关系 #2531

Closed
an-shi-chi-fan opened this issue Aug 18, 2021 · 2 comments
Closed

查询五个节点相互的关联关系 #2531

an-shi-chi-fan opened this issue Aug 18, 2021 · 2 comments

Comments

@an-shi-chi-fan
Copy link

我想查询5个节点之间相互的关联关系,看了很多遍手册,好像没有找到合适的语法,请问这个查询节点间相互关系的查询语句该怎么写啊?

比如:我有1~1百万个(person)节点,然后我想知道节点1,2,99,10000,70000这五个节点之间互相连接的圈子怎么写

@Shylock-Hg
Copy link
Contributor

You could try:

FIND ALL PATH FROM 1, 2, 99, 10000, 70000 TO 1, 2, 99, 10000, 70000 over <edge_types>

@CPWstatic
Copy link
Contributor

match (a)-[c]-(b) where id(a)=="Tim Duncan" or id(a)=="Tony Parker" or id(b)=="Tim Duncan" or id(b)=="Tony Parker" return a,b,c

yixinglu pushed a commit to yixinglu/nebula that referenced this issue Sep 14, 2023
Co-authored-by: Alex Xing <90179377+SuperYoko@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants