Skip to content

Commit

Permalink
moved watts strogatz function from agtype_typecast.sql to age--1.5.0-…
Browse files Browse the repository at this point in the history
…-y.y.y.sql
  • Loading branch information
WendelLana committed Sep 24, 2024
1 parent 77da9f7 commit ec68508
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 13 additions & 1 deletion age--1.5.0--y.y.y.sql
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,16 @@ PARALLEL SAFE
AS 'MODULE_PATHNAME';

CREATE CAST (agtype AS json)
WITH FUNCTION ag_catalog.agtype_to_json(agtype);
WITH FUNCTION ag_catalog.agtype_to_json(agtype);

CREATE FUNCTION ag_catalog.age_create_watts_strogatz_graph(graph_name name, n int, k int, p float8,
vertex_label_name name = NULL,
vertex_properties agtype = NULL,
edge_label_name name = NULL,
edge_properties agtype = NULL,
bidirectional boolean = true)
RETURNS void
LANGUAGE c
CALLED ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';
12 changes: 0 additions & 12 deletions sql/agtype_typecast.sql
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,6 @@ CREATE FUNCTION ag_catalog.age_create_barbell_graph(graph_name name,
PARALLEL SAFE
AS 'MODULE_PATHNAME';

CREATE FUNCTION ag_catalog.age_create_watts_strogatz_graph(graph_name name, n int, k int, p float8,
vertex_label_name name = NULL,
vertex_properties agtype = NULL,
edge_label_name name = NULL,
edge_properties agtype = NULL,
bidirectional boolean = true)
RETURNS void
LANGUAGE c
CALLED ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';

CREATE FUNCTION ag_catalog.age_prepare_cypher(cstring, cstring)
RETURNS boolean
LANGUAGE c
Expand Down

0 comments on commit ec68508

Please sign in to comment.