Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ REGRESS = scan \
cypher_delete \
cypher_with \
cypher_vle \
age_shortest_path \
cypher_union \
cypher_call \
cypher_merge \
Expand Down
31 changes: 31 additions & 0 deletions age--1.7.0--y.y.y.sql
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,37 @@ CALLED ON NULL INPUT
PARALLEL UNSAFE
AS 'MODULE_PATHNAME';

-- Unweighted (hop-count) shortest path between two vertices, computed over the
-- cached global graph adjacency via BFS. Returns a single path (0 or 1 rows).
-- Argument order mirrors the Cypher shortestPath() pattern
-- (a)-[:type*min_hops..max_hops]->(b):
-- (graph_name, start, end, edge_types, direction, min_hops, max_hops)
CREATE FUNCTION ag_catalog.age_shortest_path(IN agtype, IN agtype, IN agtype,
IN agtype DEFAULT NULL,
IN agtype DEFAULT NULL,
IN agtype DEFAULT NULL,
IN agtype DEFAULT NULL)
RETURNS SETOF agtype
LANGUAGE C
STABLE
CALLED ON NULL INPUT
PARALLEL UNSAFE
AS 'MODULE_PATHNAME';

-- All unweighted shortest paths between two vertices (one path per row).
-- Same argument order as age_shortest_path.
CREATE FUNCTION ag_catalog.age_all_shortest_paths(IN agtype, IN agtype, IN agtype,
IN agtype DEFAULT NULL,
IN agtype DEFAULT NULL,
IN agtype DEFAULT NULL,
IN agtype DEFAULT NULL)
RETURNS SETOF agtype
LANGUAGE C
STABLE
CALLED ON NULL INPUT
PARALLEL UNSAFE
AS 'MODULE_PATHNAME';

--
-- Composite types for vertex and edge
--
Expand Down
Loading
Loading