Skip to content

find shortest path without specifying predicates #2265

@omurbekjk

Description

@omurbekjk

How to find shortest path between two nodes ignoring any edge/route between them?
Example:

{
 path as shortest(from: 0x2, to: 0x5) {
  friend # here??? 
 }
 path(func: uid(path)) {
   name
 }
}

more ex: A->B->C->D, A->C->D
find shortest path between A and D should return A->C->D

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/querylangIssues related to the query language specification and implementation.area/querylang/algosRelated to graph algorithms, such as k-shortest path.kind/enhancementSomething could be better.popularstatus/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions