Graph Endpoints

The graph endpoints expose the underlying FalkorDB property graph as serializable node/edge data. These are primarily used to power network visualizations (e.g., D3.js force graphs, Cytoscape.js) or to feed graph analytics pipelines.

Full Graph Data

Returns all nodes and edges in the graph, formatted for visualization libraries.
This endpoint returns the full graph and its payload can be several megabytes. For interactive work, use /api/graph/neighbors/{name} for a focused subgraph; use the full graph for offline processing or static visualization.

Example

Response Format

The values below are illustrative. Use node_count and edge_count in the response for the current graph size.

Node Object

Edge Object


Repository Neighbors

Returns the immediate neighborhood of a repository node: all nodes directly connected to it by one hop, and the edges connecting them. This is the recommended way to build focused subgraph visualizations without loading the entire graph.

Path Parameters

Example

Response


Using Graph Data with Visualization Libraries

D3.js Force Graph

Cytoscape.js


Graph Query Tips

  • Use /api/graph/neighbors/{name} for interactive repo exploration — it is far faster and lighter than the full graph.
  • The full /api/graph endpoint is best for offline batch processing or generating static visualizations.
  • Node id values are stable across API calls and can be used to join graph data with other API responses.
  • See Cypher Examples for complex multi-hop queries using the MCP query tool.