Skip to content

Limit the number of PathFinder paths in the Back-End #2458

@dkoslicki

Description

@dkoslicki

Some pathfinder queries, such as:

{
   "nodes": {
      "n0": {
         "ids": [ "CHEBI:31690" ]
      },
      "n1": {
         "ids": [ "MONDO:0004784" ]
      }
   },
   "paths": {
      "p0": {
         "subject":   "n0",
         "object":    "n1",
         "intermediate_nodes": [],
         "predicates": [ "biolink:related_to" ]
      }
   }
}

return a paths.

Similar to how we truncate the number of results for lookup and inferred queries, we should probably limit the number of paths returned. Open to opinions especially from @isbluis and @mohsenht about where this should be done (UI or pathfinder itself)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions