@@ -188,7 +188,7 @@ def test_roundtrip_with_arrow_encrypted(gds_with_tls: GraphDataScience) -> None:
188188 rel_df = gds_with_tls .graph .streamRelationshipProperty (G , "relX" )
189189 node_df = gds_with_tls .graph .streamNodeProperty (G , "x" )
190190
191- G_2 = gds_with_tls .alpha . graph .construct ("arrowGraph" , node_df , rel_df )
191+ G_2 = gds_with_tls .graph .construct ("arrowGraph" , node_df , rel_df )
192192
193193 try :
194194 assert G .node_count () == G_2 .node_count ()
@@ -198,7 +198,7 @@ def test_roundtrip_with_arrow_encrypted(gds_with_tls: GraphDataScience) -> None:
198198
199199
200200@pytest .mark .filterwarnings ("ignore: GDS Enterprise users can use Apache Arrow" )
201- def test_graph_alpha_construct_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
201+ def test_graph_construct_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
202202 nodes = DataFrame (
203203 {
204204 "nodeId" : [0 , 1 , 2 , 3 ],
@@ -218,7 +218,7 @@ def test_graph_alpha_construct_without_arrow(gds_without_arrow: GraphDataScience
218218 }
219219 )
220220
221- G = gds_without_arrow .alpha . graph .construct ("hello" , nodes , relationships )
221+ G = gds_without_arrow .graph .construct ("hello" , nodes , relationships )
222222
223223 try :
224224 assert G .name () == "hello"
@@ -234,7 +234,7 @@ def test_graph_alpha_construct_without_arrow(gds_without_arrow: GraphDataScience
234234
235235@pytest .mark .filterwarnings ("ignore: GDS Enterprise users can use Apache Arrow" )
236236@pytest .mark .compatible_with (min_inclusive = ServerVersion (2 , 3 , 0 ))
237- def test_graph_alpha_construct_undirected_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
237+ def test_graph_construct_undirected_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
238238 nodes = DataFrame (
239239 {
240240 "nodeId" : [0 , 1 , 2 , 3 ],
@@ -249,7 +249,7 @@ def test_graph_alpha_construct_undirected_without_arrow(gds_without_arrow: Graph
249249 }
250250 )
251251
252- G = gds_without_arrow .alpha . graph .construct ("hello" , nodes , relationships , undirected_relationship_types = ["REL2" ])
252+ G = gds_without_arrow .graph .construct ("hello" , nodes , relationships , undirected_relationship_types = ["REL2" ])
253253
254254 try :
255255 assert G .name () == "hello"
@@ -262,7 +262,7 @@ def test_graph_alpha_construct_undirected_without_arrow(gds_without_arrow: Graph
262262
263263@pytest .mark .filterwarnings ("ignore: GDS Enterprise users can use Apache Arrow" )
264264@pytest .mark .compatible_with (max_exclusive = ServerVersion (2 , 3 , 0 ))
265- def warn_for_graph_alpha_construct_undirected_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
265+ def warn_for_graph_construct_undirected_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
266266 nodes = DataFrame (
267267 {
268268 "nodeId" : [0 , 1 , 2 , 3 ],
@@ -277,7 +277,7 @@ def warn_for_graph_alpha_construct_undirected_without_arrow(gds_without_arrow: G
277277 )
278278
279279 with pytest .raises (ValueError ):
280- gds_without_arrow .alpha . graph .construct ("hello" , nodes , relationships , undirected_relationship_types = ["REL2" ])
280+ gds_without_arrow .graph .construct ("hello" , nodes , relationships , undirected_relationship_types = ["REL2" ])
281281
282282
283283@pytest .mark .enterprise
@@ -297,7 +297,7 @@ def test_graph_construct_with_arrow(gds: GraphDataScience) -> None:
297297
298298@pytest .mark .filterwarnings ("ignore: GDS Enterprise users can use Apache Arrow" )
299299@pytest .mark .compatible_with (max_exlusive = ServerVersion (2 , 3 , 0 ))
300- def warn_for_graph_alpha_construct_undirected_with_arrow (gds : GraphDataScience ) -> None :
300+ def warn_for_graph_construct_undirected_with_arrow (gds : GraphDataScience ) -> None :
301301 nodes = DataFrame (
302302 {
303303 "nodeId" : [0 , 1 , 2 , 3 ],
@@ -400,7 +400,7 @@ def test_graph_construct_without_arrow_enterprise_warning(gds_without_arrow: Gra
400400 relationships = DataFrame ({"sourceNodeId" : [0 , 1 , 2 , 3 ], "targetNodeId" : [1 , 2 , 3 , 0 ]})
401401
402402 with pytest .warns (UserWarning ):
403- G = gds_without_arrow .alpha . graph .construct ("hello" , nodes , relationships )
403+ G = gds_without_arrow .graph .construct ("hello" , nodes , relationships )
404404 G .drop ()
405405
406406
@@ -416,7 +416,7 @@ def test_graph_construct_without_arrow_multi_dfs(gds_without_arrow: GraphDataSci
416416 DataFrame ({"sourceNodeId" : [2 , 3 ], "targetNodeId" : [3 , 0 ], "relationshipType" : ["B" , "B" ]}),
417417 ]
418418
419- G = gds_without_arrow .alpha . graph .construct ("hello" , nodes , relationships )
419+ G = gds_without_arrow .graph .construct ("hello" , nodes , relationships )
420420
421421 assert G .name () == "hello"
422422 assert G .node_count () == 4
@@ -462,3 +462,24 @@ def test_graph_construct_with_arrow_no_db() -> None:
462462
463463 with pytest .raises (ValueError ):
464464 gds .graph .construct ("hello" , nodes , relationships )
465+
466+
467+ @pytest .mark .filterwarnings ("ignore: GDS Enterprise users can use Apache Arrow" )
468+ def test_graph_alpha_construct_backward_compat_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
469+ nodes = DataFrame ({"nodeId" : [0 , 1 , 2 , 3 ], "labels" : [["A" ], "B" , ["C" , "A" ], ["D" ]]})
470+ relationships = DataFrame (
471+ {"sourceNodeId" : [0 , 1 , 2 , 3 ], "targetNodeId" : [1 , 2 , 3 , 0 ], "relationshipType" : ["REL" , "REL" , "REL" , "REL2" ]}
472+ )
473+
474+ with pytest .warns (DeprecationWarning ):
475+ gds_without_arrow .alpha .graph .construct ("hello" , nodes , relationships )
476+
477+
478+ @pytest .mark .enterprise
479+ @pytest .mark .compatible_with (min_inclusive = ServerVersion (2 , 1 , 0 ))
480+ def test_graph_alpha_construct_backward_compat_with_arrow (gds : GraphDataScience ) -> None :
481+ nodes = DataFrame ({"nodeId" : [0 , 1 , 2 , 3 ]})
482+ relationships = DataFrame ({"sourceNodeId" : [0 , 1 , 2 , 3 ], "targetNodeId" : [1 , 2 , 3 , 0 ]})
483+
484+ with pytest .warns (DeprecationWarning ):
485+ gds .alpha .graph .construct ("hello" , nodes , relationships )
0 commit comments