Page MenuHomeSoftware Heritage

graph API: add endpoint to return the adjacency list of a node
Closed, MigratedEdits Locked

Description

The current graph API doesn't allow to simply retrieve the edges related to a given node. We could add a non recursive option to existing methods, but given how foundamental the operation is I think it deserves a dedicated method.

Concrete proposal:

  • method: /graph/neighbors/:src
  • return: list of node PIDs directly linked to :src via single edges
  • query params:edges, direction with the usual semantics and default values

Event Timeline

zack triaged this task as Normal priority.Jul 7 2019, 4:04 PM
zack created this task.
zack renamed this task from Graph API: add endpoint to return in/outbound edges to Graph API: add endpoint to return the adjacency list of a node.Jul 7 2019, 4:49 PM
zack updated the task description. (Show Details)

How about: GET /graph/neighbors/:src?

How about: GET /graph/neighbors/:src?

deal ! :)

zack renamed this task from Graph API: add endpoint to return the adjacency list of a node to graph API: add endpoint to return the adjacency list of a node.Jul 7 2019, 8:36 PM
haltode claimed this task.

Done in D1698.