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

provide a function allshortestpaths() #2679

Closed
whitewum opened this issue Feb 2, 2021 · 0 comments
Closed

provide a function allshortestpaths() #2679

whitewum opened this issue Feb 2, 2021 · 0 comments
Labels
type/feature req Type: feature request

Comments

@whitewum
Copy link
Contributor

whitewum commented Feb 2, 2021

  Scenario: Integer Vid [2] SinglePair Shortest Path
    When executing query:
      """
      FIND SHORTEST PATH FROM hash("Tim Duncan") TO hash("LaMarcus Aldridge") OVER like
      """
    Then the result should be, in any order, with relax comparison:
      | path                                                                     |
      | <("Tim Duncan")-[:like]->("Tony Parker")-[:like]->("LaMarcus Aldridge")> |

The clause FIND SHORTEST PATH FROM works the same as allshortestpaths(). BUT

MATCH p = allshortestpaths()
RETURN nodes(p), relationships(p), length(p)

can provide more info.

OR e.g.,

MATCH p = allshortestpaths()
WHERE length(p) > 3
RETURN p
@CPWstatic CPWstatic transferred this issue from vesoft-inc/nebula-graph Aug 28, 2021
@CPWstatic CPWstatic added the type/feature req Type: feature request label Aug 28, 2021
@whitewum whitewum closed this as completed Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

2 participants