graphdatascience 2.4__py3-none-any.whl → 2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. graphdatascience/procedure_surface/api/catalog/__init__.py +4 -0
  2. graphdatascience/procedure_surface/api/catalog/catalog_endpoints.py +2 -2
  3. graphdatascience/procedure_surface/api/catalog/scale_properties_endpoints.py +5 -5
  4. graphdatascience/procedure_surface/api/catalog/scale_properties_session_endpoints.py +66 -0
  5. graphdatascience/procedure_surface/api/centrality/articlerank_endpoints.py +5 -5
  6. graphdatascience/procedure_surface/api/centrality/articlerank_session_endpoints.py +1 -1
  7. graphdatascience/procedure_surface/api/centrality/eigenvector_endpoints.py +5 -5
  8. graphdatascience/procedure_surface/api/centrality/eigenvector_session_endpoints.py +1 -1
  9. graphdatascience/procedure_surface/api/centrality/pagerank_endpoints.py +5 -5
  10. graphdatascience/procedure_surface/api/centrality/pagerank_session_endpoints.py +1 -1
  11. graphdatascience/procedure_surface/api/node_embedding/graphsage_endpoints.py +1 -1
  12. graphdatascience/procedure_surface/api/node_embedding/graphsage_train_endpoints.py +1 -1
  13. graphdatascience/procedure_surface/api/pathfinding/__init__.py +6 -0
  14. graphdatascience/procedure_surface/api/pathfinding/dag_session_endpoints.py +27 -0
  15. graphdatascience/procedure_surface/api/pathfinding/topological_sort_session_endpoints.py +62 -0
  16. graphdatascience/procedure_surface/arrow/catalog/catalog_arrow_endpoints.py +1 -1
  17. graphdatascience/procedure_surface/arrow/catalog/projection_arrow_endpoints.py +8 -0
  18. graphdatascience/procedure_surface/arrow/catalog/scale_properties_arrow_endpoints.py +34 -2
  19. graphdatascience/procedure_surface/arrow/centrality/pagerank_arrow_endpoints.py +1 -1
  20. graphdatascience/procedure_surface/arrow/pathfinding/dag_arrow_endpoints.py +10 -6
  21. graphdatascience/procedure_surface/arrow/pathfinding/topological_sort_arrow_endpoints.py +32 -2
  22. graphdatascience/procedure_surface/cypher/catalog/catalog_cypher_endpoints.py +3 -2
  23. graphdatascience/query_runner/neo4j_query_runner.py +7 -4
  24. graphdatascience/session/aura_graph_data_science.py +8 -6
  25. graphdatascience/session/dbms_connection_info.py +15 -2
  26. graphdatascience/session/gds_sessions.py +18 -9
  27. graphdatascience/session/remote_ops/project_protocols.py +8 -2
  28. graphdatascience/session/remote_ops/projection_runner.py +2 -0
  29. graphdatascience/session/session_target.py +16 -1
  30. graphdatascience/version.py +1 -1
  31. {graphdatascience-2.4.dist-info → graphdatascience-2.5.dist-info}/METADATA +1 -1
  32. {graphdatascience-2.4.dist-info → graphdatascience-2.5.dist-info}/RECORD +35 -32
  33. {graphdatascience-2.4.dist-info → graphdatascience-2.5.dist-info}/WHEEL +0 -0
  34. {graphdatascience-2.4.dist-info → graphdatascience-2.5.dist-info}/licenses/LICENSE +0 -0
  35. {graphdatascience-2.4.dist-info → graphdatascience-2.5.dist-info}/top_level.txt +0 -0
@@ -51,6 +51,9 @@ from graphdatascience.procedure_surface.api.catalog.scale_properties_endpoints i
51
51
  ScalePropertiesStatsResult,
52
52
  ScalePropertiesWriteResult,
53
53
  )
54
+ from graphdatascience.procedure_surface.api.catalog.scale_properties_session_endpoints import (
55
+ ScalePropertiesSessionEndpoints,
56
+ )
54
57
  from graphdatascience.procedure_surface.api.catalog.scaler_config import ScalerConfig
55
58
 
56
59
  __all__ = [
@@ -87,6 +90,7 @@ __all__ = [
87
90
  "RelationshipsWriteResult",
88
91
  "ScalePropertiesEndpoints",
89
92
  "ScalePropertiesMutateResult",
93
+ "ScalePropertiesSessionEndpoints",
90
94
  "ScalePropertiesStatsResult",
91
95
  "ScalePropertiesWriteResult",
92
96
  "ScalerConfig",
@@ -43,13 +43,13 @@ class CatalogEndpoints(ABC):
43
43
  pass
44
44
 
45
45
  @abstractmethod
46
- def exists(self, graph_name: str) -> bool:
46
+ def exists(self, graph_name: Graph | str) -> bool:
47
47
  """Check if a graph exists in the catalog.
48
48
 
49
49
  Parameters
50
50
  ----------
51
51
  graph_name
52
- Name of the graph
52
+ The graph, or the name of the graph
53
53
 
54
54
  Returns
55
55
  -------
@@ -45,7 +45,7 @@ class ScalePropertiesEndpoints(ABC):
45
45
 
46
46
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
47
47
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
48
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
48
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
49
49
  node_labels
50
50
  Filter the graph using the given node labels. Nodes with any of the given labels will be included.
51
51
  sudo
@@ -95,7 +95,7 @@ class ScalePropertiesEndpoints(ABC):
95
95
 
96
96
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
97
97
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
98
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
98
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
99
99
  node_labels
100
100
  Filter the graph using the given node labels. Nodes with any of the given labels will be included.
101
101
  sudo
@@ -143,7 +143,7 @@ class ScalePropertiesEndpoints(ABC):
143
143
 
144
144
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
145
145
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
146
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
146
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
147
147
  node_labels
148
148
  Filter the graph using the given node labels. Nodes with any of the given labels will be included.
149
149
  sudo
@@ -198,7 +198,7 @@ class ScalePropertiesEndpoints(ABC):
198
198
 
199
199
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
200
200
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
201
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
201
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
202
202
  node_labels
203
203
  Filter the graph using the given node labels. Nodes with any of the given labels will be included.
204
204
  sudo
@@ -242,7 +242,7 @@ class ScalePropertiesEndpoints(ABC):
242
242
 
243
243
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
244
244
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
245
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
245
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
246
246
  node_labels
247
247
  Filter the graph using the given node labels. Nodes with any of the given labels will be included.
248
248
  concurrency
@@ -0,0 +1,66 @@
1
+ from __future__ import annotations
2
+
3
+ from abc import abstractmethod
4
+
5
+ from graphdatascience.graph.graph_api import Graph
6
+ from graphdatascience.procedure_surface.api.catalog.scale_properties_endpoints import (
7
+ ScalePropertiesEndpoints,
8
+ )
9
+ from graphdatascience.procedure_surface.api.catalog.scaler_config import ScalerConfig
10
+ from graphdatascience.procedure_surface.api.default_values import ALL_LABELS
11
+ from graphdatascience.procedure_surface.api.job_handle import JobHandle
12
+
13
+
14
+ class ScalePropertiesSessionEndpoints(ScalePropertiesEndpoints):
15
+ """Scale properties endpoints as exposed by a GDS Session."""
16
+
17
+ @abstractmethod
18
+ def compute(
19
+ self,
20
+ G: Graph,
21
+ node_properties: list[str],
22
+ scaler: str | dict[str, str | int | float] | ScalerConfig,
23
+ node_labels: list[str] = ALL_LABELS,
24
+ sudo: bool = False,
25
+ log_progress: bool = True,
26
+ username: str | None = None,
27
+ concurrency: int | None = None,
28
+ job_id: str | None = None,
29
+ ) -> JobHandle:
30
+ """
31
+ Starts the computation as a job and returns a handle to it.
32
+
33
+ The computation runs without materializing its result. Use the returned handle to
34
+ mutate, write or stream the result afterwards.
35
+
36
+ Parameters
37
+ ----------
38
+ G
39
+ Graph object to use
40
+ node_properties
41
+ The node properties to scale. Can be a list of property names or a dictionary mapping property names to configurations.
42
+ scaler
43
+ The scaler to use. Can be:
44
+
45
+ - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
46
+ - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
47
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
48
+ node_labels
49
+ Filter the graph using the given node labels. Nodes with any of the given labels will be included.
50
+ sudo
51
+ Disable the memory guard.
52
+ log_progress
53
+ Display progress logging.
54
+ username
55
+ As an administrator, impersonate a different user for accessing their graphs.
56
+ concurrency
57
+ Number of concurrent threads to use.
58
+ job_id
59
+ Identifier for the computation.
60
+
61
+ Returns
62
+ -------
63
+ JobHandle
64
+ Handle to the started computation
65
+ """
66
+ pass
@@ -57,7 +57,7 @@ class ArticleRankEndpoints(ABC):
57
57
 
58
58
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
59
59
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
60
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
60
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
61
61
  relationship_types
62
62
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
63
63
  node_labels
@@ -127,7 +127,7 @@ class ArticleRankEndpoints(ABC):
127
127
 
128
128
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
129
129
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
130
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
130
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
131
131
  relationship_types
132
132
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
133
133
  node_labels
@@ -193,7 +193,7 @@ class ArticleRankEndpoints(ABC):
193
193
 
194
194
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
195
195
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
196
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
196
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
197
197
  relationship_types
198
198
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
199
199
  node_labels
@@ -267,7 +267,7 @@ class ArticleRankEndpoints(ABC):
267
267
 
268
268
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
269
269
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
270
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
270
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
271
271
  relationship_types
272
272
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
273
273
  node_labels
@@ -329,7 +329,7 @@ class ArticleRankEndpoints(ABC):
329
329
 
330
330
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
331
331
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
332
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
332
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
333
333
  relationship_types
334
334
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
335
335
  node_labels
@@ -48,7 +48,7 @@ class ArticleRankSessionEndpoints(ArticleRankEndpoints):
48
48
  max_iterations
49
49
  Maximum number of iterations to run.
50
50
  scaler
51
- The scaler to use. Can be: - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE') - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0}) - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
51
+ The scaler to use. Can be: - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE') - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0}) - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
52
52
  relationship_types
53
53
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
54
54
  node_labels
@@ -58,7 +58,7 @@ class EigenvectorEndpoints(ABC):
58
58
 
59
59
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
60
60
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
61
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
61
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
62
62
  relationship_weight_property
63
63
  Name of the property to be used as weights.
64
64
  relationship_types
@@ -125,7 +125,7 @@ class EigenvectorEndpoints(ABC):
125
125
 
126
126
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
127
127
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
128
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
128
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
129
129
  relationship_weight_property
130
130
  Name of the property to be used as weights.
131
131
  relationship_types
@@ -187,7 +187,7 @@ class EigenvectorEndpoints(ABC):
187
187
 
188
188
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
189
189
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
190
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
190
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
191
191
  relationship_weight_property
192
192
  Name of the property to be used as weights.
193
193
  relationship_types
@@ -258,7 +258,7 @@ class EigenvectorEndpoints(ABC):
258
258
 
259
259
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
260
260
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
261
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
261
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
262
262
  relationship_weight_property
263
263
  Name of the property to be used as weights.
264
264
  relationship_types
@@ -316,7 +316,7 @@ class EigenvectorEndpoints(ABC):
316
316
 
317
317
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
318
318
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
319
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
319
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
320
320
  relationship_weight_property
321
321
  Name of the property to be used as weights.
322
322
  relationship_types
@@ -49,7 +49,7 @@ class EigenvectorSessionEndpoints(EigenvectorEndpoints):
49
49
  source_nodes
50
50
  node ids to use as starting points. Can be: - single node id (e.g., 42) - list of node id (e.g., [42, 43, 44])
51
51
  scaler
52
- The scaler to use. Can be: - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE') - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0}) - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
52
+ The scaler to use. Can be: - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE') - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0}) - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
53
53
  relationship_weight_property
54
54
  Name of the property to be used as weights.
55
55
  relationship_types
@@ -55,7 +55,7 @@ class PageRankEndpoints(ABC):
55
55
 
56
56
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
57
57
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
58
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
58
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
59
59
  relationship_types
60
60
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
61
61
  node_labels
@@ -124,7 +124,7 @@ class PageRankEndpoints(ABC):
124
124
 
125
125
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
126
126
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
127
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
127
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
128
128
  relationship_types
129
129
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
130
130
  node_labels
@@ -192,7 +192,7 @@ class PageRankEndpoints(ABC):
192
192
 
193
193
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
194
194
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
195
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
195
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
196
196
  relationship_types
197
197
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
198
198
  node_labels
@@ -262,7 +262,7 @@ class PageRankEndpoints(ABC):
262
262
 
263
263
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
264
264
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
265
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
265
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
266
266
  relationship_types
267
267
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
268
268
  node_labels
@@ -324,7 +324,7 @@ class PageRankEndpoints(ABC):
324
324
 
325
325
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
326
326
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
327
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
327
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
328
328
  relationship_types
329
329
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
330
330
  node_labels
@@ -49,7 +49,7 @@ class PageRankSessionEndpoints(PageRankEndpoints):
49
49
  max_iterations
50
50
  Maximum number of iterations to run.
51
51
  scaler
52
- The scaler to use. Can be: - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE') - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0}) - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
52
+ The scaler to use. Can be: - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE') - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0}) - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
53
53
  relationship_types
54
54
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
55
55
  node_labels
@@ -71,7 +71,7 @@ class GraphSageEndpoints(GraphSagePredictEndpoints):
71
71
  epochs
72
72
  Number of training epochs
73
73
  patience
74
- Epochs without improvement in the training loss before training stops early.
74
+ Iterations without a loss within tolerance from the best found, before stopping early.
75
75
  projected_feature_dimension
76
76
  Dimension to project input features to before training
77
77
  batch_sampling_ratio
@@ -116,7 +116,7 @@ class GraphSageTrainEndpoints(ABC):
116
116
  epochs
117
117
  Number of training epochs
118
118
  patience
119
- Epochs without improvement in the training loss before training stops early.
119
+ Iterations without a loss within tolerance from the best found, before stopping early.
120
120
  projected_feature_dimension
121
121
  Dimension to project input features to before training
122
122
  batch_sampling_ratio
@@ -11,6 +11,7 @@ from graphdatascience.procedure_surface.api.pathfinding.bfs_session_endpoints im
11
11
  BFSSessionEndpoints,
12
12
  )
13
13
  from graphdatascience.procedure_surface.api.pathfinding.dag_endpoints import DagEndpoints
14
+ from graphdatascience.procedure_surface.api.pathfinding.dag_session_endpoints import DagSessionEndpoints
14
15
  from graphdatascience.procedure_surface.api.pathfinding.dfs_endpoints import (
15
16
  DFSEndpoints,
16
17
  DFSMutateResult,
@@ -145,6 +146,9 @@ from graphdatascience.procedure_surface.api.pathfinding.steiner_tree_session_end
145
146
  SteinerTreeSessionEndpoints,
146
147
  )
147
148
  from graphdatascience.procedure_surface.api.pathfinding.topological_sort_endpoints import TopologicalSortEndpoints
149
+ from graphdatascience.procedure_surface.api.pathfinding.topological_sort_session_endpoints import (
150
+ TopologicalSortSessionEndpoints,
151
+ )
148
152
 
149
153
  __all__ = [
150
154
  "AStarMutateResult",
@@ -164,6 +168,7 @@ __all__ = [
164
168
  "DFSSessionEndpoints",
165
169
  "DFSStatsResult",
166
170
  "DagEndpoints",
171
+ "DagSessionEndpoints",
167
172
  "DeltaSteppingMutateResult",
168
173
  "DeltaSteppingSessionEndpoints",
169
174
  "DeltaSteppingStatsResult",
@@ -222,6 +227,7 @@ __all__ = [
222
227
  "SteinerTreeStatsResult",
223
228
  "SteinerTreeWriteResult",
224
229
  "TopologicalSortEndpoints",
230
+ "TopologicalSortSessionEndpoints",
225
231
  "YensMutateResult",
226
232
  "YensWriteResult",
227
233
  ]
@@ -0,0 +1,27 @@
1
+ from __future__ import annotations
2
+
3
+ from abc import abstractmethod
4
+
5
+ from graphdatascience.procedure_surface.api.pathfinding.dag_endpoints import DagEndpoints
6
+ from graphdatascience.procedure_surface.api.pathfinding.longest_path_session_endpoints import (
7
+ LongestPathSessionEndpoints,
8
+ )
9
+ from graphdatascience.procedure_surface.api.pathfinding.topological_sort_session_endpoints import (
10
+ TopologicalSortSessionEndpoints,
11
+ )
12
+
13
+
14
+ class DagSessionEndpoints(DagEndpoints):
15
+ """DAG endpoints as exposed by a GDS Session."""
16
+
17
+ @property
18
+ @abstractmethod
19
+ def longest_path(self) -> LongestPathSessionEndpoints:
20
+ """Access to Longest Path algorithm endpoints for DAGs."""
21
+ ...
22
+
23
+ @property
24
+ @abstractmethod
25
+ def topological_sort(self) -> TopologicalSortSessionEndpoints:
26
+ """Access to Topological Sort algorithm endpoints for DAGs."""
27
+ ...
@@ -0,0 +1,62 @@
1
+ from __future__ import annotations
2
+
3
+ from abc import abstractmethod
4
+
5
+ from graphdatascience.graph.graph_api import Graph
6
+ from graphdatascience.procedure_surface.api.default_values import ALL_LABELS, ALL_TYPES
7
+ from graphdatascience.procedure_surface.api.job_handle import JobHandle
8
+ from graphdatascience.procedure_surface.api.pathfinding.topological_sort_endpoints import (
9
+ TopologicalSortEndpoints,
10
+ )
11
+
12
+
13
+ class TopologicalSortSessionEndpoints(TopologicalSortEndpoints):
14
+ """TopologicalSort endpoints as exposed by a GDS Session."""
15
+
16
+ @abstractmethod
17
+ def compute(
18
+ self,
19
+ G: Graph,
20
+ *,
21
+ compute_max_distance_from_source: bool = False,
22
+ relationship_types: list[str] = ALL_TYPES,
23
+ node_labels: list[str] = ALL_LABELS,
24
+ sudo: bool = False,
25
+ log_progress: bool = True,
26
+ username: str | None = None,
27
+ concurrency: int | None = None,
28
+ job_id: str | None = None,
29
+ ) -> JobHandle:
30
+ """
31
+ Starts the computation as a job and returns a handle to it.
32
+
33
+ The computation runs without materializing its result. Use the returned handle to
34
+ mutate, write or stream the result afterwards.
35
+
36
+ Parameters
37
+ ----------
38
+ G
39
+ Graph object to use
40
+ compute_max_distance_from_source
41
+ Whether to compute the maximum distance from the source node.
42
+ relationship_types
43
+ Filter the graph using the given relationship types. Relationships with any of the given types will be included.
44
+ node_labels
45
+ Filter the graph using the given node labels. Nodes with any of the given labels will be included.
46
+ sudo
47
+ Disable the memory guard.
48
+ log_progress
49
+ Display progress logging.
50
+ username
51
+ As an administrator, impersonate a different user for accessing their graphs.
52
+ concurrency
53
+ Number of concurrent threads to use.
54
+ job_id
55
+ Identifier for the computation.
56
+
57
+ Returns
58
+ -------
59
+ JobHandle
60
+ Handle to the started computation
61
+ """
62
+ pass
@@ -83,7 +83,7 @@ class CatalogArrowEndpoints(CatalogEndpoints):
83
83
  raise ValueError(f"A graph with name '{graph_name}' does not exist in the catalog.")
84
84
  return get_graph(graph_name, self._arrow_client)
85
85
 
86
- def exists(self, graph_name: str) -> bool:
86
+ def exists(self, graph_name: Graph | str) -> bool:
87
87
  return len(self.list(graph_name)) > 0
88
88
 
89
89
  def construct(
@@ -175,6 +175,7 @@ class ProjectArrowEndpoints:
175
175
  relationship_properties: str | typing.List[str] | None = None,
176
176
  job_id: str | None = None,
177
177
  concurrency: int | None = None,
178
+ read_concurrency: int | None = None,
178
179
  undirected_relationship_types: typing.List[str] | None = None,
179
180
  inverse_indexed_relationship_types: typing.List[str] | None = None,
180
181
  batch_size: int | None = None,
@@ -200,6 +201,10 @@ class ProjectArrowEndpoints:
200
201
  Identifier for the computation.
201
202
  concurrency
202
203
  Number of concurrent threads to use.
204
+ read_concurrency
205
+ Number of concurrent threads used by the database to read the store.
206
+ Forwarded for compatibility; it takes effect on database releases that
207
+ support it and is ignored otherwise.
203
208
  undirected_relationship_types
204
209
  List of relationship types to treat as undirected.
205
210
  inverse_indexed_relationship_types
@@ -241,6 +246,7 @@ class ProjectArrowEndpoints:
241
246
  relationship_properties,
242
247
  job_id,
243
248
  concurrency,
249
+ read_concurrency,
244
250
  undirected_relationship_types,
245
251
  inverse_indexed_relationship_types,
246
252
  batch_size,
@@ -266,6 +272,7 @@ class ProjectArrowEndpoints:
266
272
  relationship_properties: str | typing.List[str] | None = None,
267
273
  job_id: str | None = None,
268
274
  concurrency: int | None = None,
275
+ read_concurrency: int | None = None,
269
276
  undirected_relationship_types: typing.List[str] | None = None,
270
277
  inverse_indexed_relationship_types: typing.List[str] | None = None,
271
278
  batch_size: int | None = None,
@@ -301,6 +308,7 @@ class ProjectArrowEndpoints:
301
308
  relationship_properties,
302
309
  job_id,
303
310
  concurrency,
311
+ read_concurrency,
304
312
  undirected_relationship_types,
305
313
  inverse_indexed_relationship_types,
306
314
  batch_size,
@@ -6,19 +6,22 @@ from pydantic import BaseModel
6
6
  from graphdatascience.arrow_client.authenticated_flight_client import AuthenticatedArrowClient
7
7
  from graphdatascience.graph.graph_api import Graph
8
8
  from graphdatascience.procedure_surface.api.catalog.scale_properties_endpoints import (
9
- ScalePropertiesEndpoints,
10
9
  ScalePropertiesMutateResult,
11
10
  ScalePropertiesStatsResult,
12
11
  ScalePropertiesWriteResult,
13
12
  )
13
+ from graphdatascience.procedure_surface.api.catalog.scale_properties_session_endpoints import (
14
+ ScalePropertiesSessionEndpoints,
15
+ )
14
16
  from graphdatascience.procedure_surface.api.catalog.scaler_config import ScalerConfig
15
17
  from graphdatascience.procedure_surface.api.default_values import ALL_LABELS
16
18
  from graphdatascience.procedure_surface.api.estimation_result import EstimationResult
19
+ from graphdatascience.procedure_surface.api.job_handle import JobHandle
17
20
  from graphdatascience.procedure_surface.arrow.node_property_endpoints import NodePropertyEndpointsHelper
18
21
  from graphdatascience.session.remote_ops.write_protocols import WriteProtocol
19
22
 
20
23
 
21
- class ScalePropertiesArrowEndpoints(ScalePropertiesEndpoints):
24
+ class ScalePropertiesArrowEndpoints(ScalePropertiesSessionEndpoints):
22
25
  def __init__(
23
26
  self,
24
27
  arrow_client: AuthenticatedArrowClient,
@@ -29,6 +32,35 @@ class ScalePropertiesArrowEndpoints(ScalePropertiesEndpoints):
29
32
  arrow_client, write_protocol, show_progress=show_progress
30
33
  )
31
34
 
35
+ def compute(
36
+ self,
37
+ G: Graph,
38
+ node_properties: list[str],
39
+ scaler: str | dict[str, str | int | float] | ScalerConfig,
40
+ node_labels: list[str] = ALL_LABELS,
41
+ sudo: bool = False,
42
+ log_progress: bool = True,
43
+ username: str | None = None,
44
+ concurrency: int | None = None,
45
+ job_id: str | None = None,
46
+ ) -> JobHandle:
47
+ # Convert ScalerConfig to dict if needed
48
+ scaler_value = scaler.model_dump() if isinstance(scaler, BaseModel) else scaler
49
+
50
+ config = self._node_property_endpoints.create_base_config(
51
+ G,
52
+ concurrency=concurrency,
53
+ job_id=job_id,
54
+ log_progress=log_progress,
55
+ node_labels=node_labels,
56
+ sudo=sudo,
57
+ username=username,
58
+ node_properties=node_properties,
59
+ scaler=scaler_value,
60
+ )
61
+
62
+ return self._node_property_endpoints.run_job(G, "v2/graph.nodeProperties.scale", config)
63
+
32
64
  def mutate(
33
65
  self,
34
66
  G: Graph,
@@ -70,7 +70,7 @@ class PageRankArrowEndpoints(PageRankSessionEndpoints):
70
70
 
71
71
  - A string (e.g., 'MinMax', 'Mean', 'Max', 'Log', 'StdScore', 'Center', 'NONE')
72
72
  - A dictionary with scaler configuration (e.g., {'type': 'Log', 'offset': 1.0})
73
- - - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
73
+ - A :class:`~graphdatascience.procedure_surface.api.catalog.scaler_config.ScalerConfig` instance
74
74
  relationship_types
75
75
  Filter the graph using the given relationship types. Relationships with any of the given types will be included.
76
76
  node_labels
@@ -1,9 +1,13 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from graphdatascience.arrow_client.authenticated_flight_client import AuthenticatedArrowClient
4
- from graphdatascience.procedure_surface.api.pathfinding.dag_endpoints import DagEndpoints
5
- from graphdatascience.procedure_surface.api.pathfinding.longest_path_endpoints import LongestPathEndpoints
6
- from graphdatascience.procedure_surface.api.pathfinding.topological_sort_endpoints import TopologicalSortEndpoints
4
+ from graphdatascience.procedure_surface.api.pathfinding.dag_session_endpoints import DagSessionEndpoints
5
+ from graphdatascience.procedure_surface.api.pathfinding.longest_path_session_endpoints import (
6
+ LongestPathSessionEndpoints,
7
+ )
8
+ from graphdatascience.procedure_surface.api.pathfinding.topological_sort_session_endpoints import (
9
+ TopologicalSortSessionEndpoints,
10
+ )
7
11
  from graphdatascience.procedure_surface.arrow.pathfinding.longest_path_arrow_endpoints import (
8
12
  LongestPathArrowEndpoints,
9
13
  )
@@ -12,7 +16,7 @@ from graphdatascience.procedure_surface.arrow.pathfinding.topological_sort_arrow
12
16
  )
13
17
 
14
18
 
15
- class DagArrowEndpoints(DagEndpoints):
19
+ class DagArrowEndpoints(DagSessionEndpoints):
16
20
  def __init__(
17
21
  self,
18
22
  arrow_client: AuthenticatedArrowClient,
@@ -22,9 +26,9 @@ class DagArrowEndpoints(DagEndpoints):
22
26
  self._topological_sort = TopologicalSortArrowEndpoints(arrow_client, show_progress)
23
27
 
24
28
  @property
25
- def longest_path(self) -> LongestPathEndpoints:
29
+ def longest_path(self) -> LongestPathSessionEndpoints:
26
30
  return self._longest_path
27
31
 
28
32
  @property
29
- def topological_sort(self) -> TopologicalSortEndpoints:
33
+ def topological_sort(self) -> TopologicalSortSessionEndpoints:
30
34
  return self._topological_sort
@@ -5,11 +5,14 @@ from pandas import DataFrame
5
5
  from graphdatascience.arrow_client.authenticated_flight_client import AuthenticatedArrowClient
6
6
  from graphdatascience.graph.graph_api import Graph
7
7
  from graphdatascience.procedure_surface.api.default_values import ALL_LABELS, ALL_TYPES
8
- from graphdatascience.procedure_surface.api.pathfinding.topological_sort_endpoints import TopologicalSortEndpoints
8
+ from graphdatascience.procedure_surface.api.job_handle import JobHandle
9
+ from graphdatascience.procedure_surface.api.pathfinding.topological_sort_session_endpoints import (
10
+ TopologicalSortSessionEndpoints,
11
+ )
9
12
  from graphdatascience.procedure_surface.arrow.node_property_endpoints import NodePropertyEndpointsHelper
10
13
 
11
14
 
12
- class TopologicalSortArrowEndpoints(TopologicalSortEndpoints):
15
+ class TopologicalSortArrowEndpoints(TopologicalSortSessionEndpoints):
13
16
  def __init__(
14
17
  self,
15
18
  arrow_client: AuthenticatedArrowClient,
@@ -19,6 +22,33 @@ class TopologicalSortArrowEndpoints(TopologicalSortEndpoints):
19
22
  arrow_client, write_protocol=None, show_progress=show_progress
20
23
  )
21
24
 
25
+ def compute(
26
+ self,
27
+ G: Graph,
28
+ *,
29
+ compute_max_distance_from_source: bool = False,
30
+ relationship_types: list[str] = ALL_TYPES,
31
+ node_labels: list[str] = ALL_LABELS,
32
+ sudo: bool = False,
33
+ log_progress: bool = True,
34
+ username: str | None = None,
35
+ concurrency: int | None = None,
36
+ job_id: str | None = None,
37
+ ) -> JobHandle:
38
+ config = self._node_property_endpoints.create_base_config(
39
+ G,
40
+ computeMaxDistanceFromSource=compute_max_distance_from_source,
41
+ relationshipTypes=relationship_types,
42
+ nodeLabels=node_labels,
43
+ sudo=sudo,
44
+ logProgress=log_progress,
45
+ username=username,
46
+ concurrency=concurrency,
47
+ jobId=job_id,
48
+ )
49
+
50
+ return self._node_property_endpoints.run_job(G, "v2/pathfinding.topologicalSort", config)
51
+
22
52
  def stream(
23
53
  self,
24
54
  G: Graph,
@@ -63,10 +63,11 @@ class CatalogCypherEndpoints(CatalogEndpoints):
63
63
  raise ValueError(f"A graph with name '{graph_name}' does not exist in the catalog.")
64
64
  return get_graph(graph_name, self._cypher_runner)
65
65
 
66
- def exists(self, graph_name: str) -> bool:
66
+ def exists(self, graph_name: Graph | str) -> bool:
67
+ name = graph_name if isinstance(graph_name, str) else graph_name.name()
67
68
  return cast(
68
69
  bool,
69
- self._cypher_runner.call_function(endpoint="gds.graph.exists", params=CallParameters(graphName=graph_name)),
70
+ self._cypher_runner.call_function(endpoint="gds.graph.exists", params=CallParameters(graphName=name)),
70
71
  )
71
72
 
72
73
  def construct(
@@ -8,6 +8,7 @@ from typing import Any, NamedTuple
8
8
 
9
9
  import neo4j
10
10
  from neo4j import Address
11
+ from neo4j.auth_management import AuthManager
11
12
  from pandas import DataFrame
12
13
  from tenacity import retry, retry_if_exception, stop_after_delay, wait_fixed
13
14
 
@@ -45,7 +46,7 @@ class Neo4jQueryRunner(QueryRunner):
45
46
  @staticmethod
46
47
  def create_for_db(
47
48
  endpoint: str | neo4j.Driver,
48
- auth: tuple[str, str] | neo4j.Auth | None = None,
49
+ auth: tuple[str, str] | neo4j.Auth | AuthManager | None = None,
49
50
  aura_ds: bool = False,
50
51
  database: str | None = None,
51
52
  bookmarks: neo4j.Bookmarks | None = None,
@@ -79,6 +80,7 @@ class Neo4jQueryRunner(QueryRunner):
79
80
  query_runner = Neo4jQueryRunner(
80
81
  endpoint,
81
82
  protocol,
83
+ auth,
82
84
  auto_close=False,
83
85
  bookmarks=bookmarks,
84
86
  database=database,
@@ -136,7 +138,7 @@ class Neo4jQueryRunner(QueryRunner):
136
138
  self,
137
139
  driver: neo4j.Driver,
138
140
  protocol: str,
139
- auth: tuple[str, str] | neo4j.Auth | None = None,
141
+ auth: tuple[str, str] | neo4j.Auth | AuthManager | None = None,
140
142
  config: dict[str, Any] = {},
141
143
  database: str | None = neo4j.DEFAULT_DATABASE,
142
144
  auto_close: bool = False,
@@ -176,8 +178,9 @@ class Neo4jQueryRunner(QueryRunner):
176
178
  def get_auth(self) -> tuple[str, str] | None:
177
179
  if isinstance(self._auth, neo4j.Auth):
178
180
  return self._auth.principal, self._auth.credentials
179
- else:
180
- return self._auth
181
+ if isinstance(self._auth, AuthManager):
182
+ return None
183
+ return self._auth
181
184
 
182
185
  def resolve_hosted_in_aura(self) -> bool:
183
186
  self.hosted_in_aura = DbEnvironmentResolver.hosted_in_aura(self)
@@ -12,7 +12,9 @@ from graphdatascience.arrow_client.v2.gds_arrow_client import GdsArrowClient
12
12
  from graphdatascience.error.not_available_outside_aura import NotAvailableOutsideAura
13
13
  from graphdatascience.error.standalone_session_error import NotAvailableInStandaloneSessions
14
14
  from graphdatascience.procedure_surface.api import ConfigEndpoints
15
- from graphdatascience.procedure_surface.api.catalog.scale_properties_endpoints import ScalePropertiesEndpoints
15
+ from graphdatascience.procedure_surface.api.catalog.scale_properties_session_endpoints import (
16
+ ScalePropertiesSessionEndpoints,
17
+ )
16
18
  from graphdatascience.procedure_surface.api.centrality.articlerank_session_endpoints import (
17
19
  ArticleRankSessionEndpoints,
18
20
  )
@@ -120,7 +122,7 @@ from graphdatascience.procedure_surface.api.pathfinding.all_shortest_path_sessio
120
122
  from graphdatascience.procedure_surface.api.pathfinding.bfs_session_endpoints import (
121
123
  BFSSessionEndpoints,
122
124
  )
123
- from graphdatascience.procedure_surface.api.pathfinding.dag_endpoints import DagEndpoints
125
+ from graphdatascience.procedure_surface.api.pathfinding.dag_session_endpoints import DagSessionEndpoints
124
126
  from graphdatascience.procedure_surface.api.pathfinding.dfs_session_endpoints import (
125
127
  DFSSessionEndpoints,
126
128
  )
@@ -556,7 +558,7 @@ class AuraGraphDataScience:
556
558
  return self.closeness_centrality
557
559
 
558
560
  @property
559
- def dag(self) -> DagEndpoints:
561
+ def dag(self) -> DagSessionEndpoints:
560
562
  """
561
563
  Return endpoints for Directed Acyclic Graph (DAG) algorithms.
562
564
  """
@@ -862,7 +864,7 @@ class AuraGraphDataScience:
862
864
  )
863
865
 
864
866
  @property
865
- def scale_properties(self) -> ScalePropertiesEndpoints:
867
+ def scale_properties(self) -> ScalePropertiesSessionEndpoints:
866
868
  """
867
869
  Return endpoints for scaling node properties.
868
870
  """
@@ -1067,8 +1069,8 @@ class AuraGraphDataScience:
1067
1069
  This is mainly useful when the `run_cypher()` API is too simple for a use case,
1068
1070
  as the driver allows full control over sessions and transactions.
1069
1071
 
1070
- The driver is always created and managed by this client, and closed by `close()`,
1071
- after which it is unusable.
1072
+ If the driver was created by this client, it is closed by `close()`, after which it is unusable.
1073
+ A driver passed in by the user via `DbmsConnectionInfo(driver=...)` is never closed by this client.
1072
1074
 
1073
1075
  Returns
1074
1076
  -------
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  import os
4
4
  from dataclasses import dataclass
5
5
 
6
- from neo4j import Auth, basic_auth
6
+ from neo4j import Auth, Driver, basic_auth
7
7
 
8
8
 
9
9
  @dataclass
@@ -13,7 +13,7 @@ class DbmsConnectionInfo:
13
13
  Supports both username/password as well as the authentication options provided by the Neo4j Python driver.
14
14
  """
15
15
 
16
- # 'uri' or 'aura_instance_id' must be provided.
16
+ # 'uri' or 'aura_instance_id' must be provided. If a 'driver' is given, 'aura_instance_id' is required.
17
17
  uri: str | None = None
18
18
 
19
19
  username: str | None = None
@@ -25,6 +25,11 @@ class DbmsConnectionInfo:
25
25
  aura_instance_id: str | None = None
26
26
  aura_database_id: str | None = None # Required if the aura_instance is a multi-db instance
27
27
 
28
+ # Optional: an already connected driver, used instead of creating one from the uri and credentials.
29
+ # The driver is owned by the caller and is never closed by the session.
30
+ # `aura_instance_id` is required in this case, as the instance cannot be derived from the driver.
31
+ driver: Driver | None = None
32
+
28
33
  def __post_init__(self) -> None:
29
34
  # Validate auth fields
30
35
  if (self.username or self.password) and self.auth:
@@ -33,6 +38,14 @@ class DbmsConnectionInfo:
33
38
  "Please provide either a username/password or a token."
34
39
  )
35
40
 
41
+ if self.driver is not None and (self.username or self.password or self.auth):
42
+ raise ValueError(
43
+ "Cannot provide authentication together with a driver. The driver is already authenticated."
44
+ )
45
+
46
+ if self.driver is not None and self.aura_instance_id is None:
47
+ raise ValueError("'aura_instance_id' must be provided together with a 'driver'.")
48
+
36
49
  if (self.aura_instance_id is None) and (self.uri is None):
37
50
  raise ValueError("Either 'uri' or 'aura_instance_id' must be provided.")
38
51
 
@@ -211,6 +211,8 @@ class GdsSessions:
211
211
  session_name (str): The name of the session.
212
212
  memory (SessionMemory | SessionMemoryValue | str): The size of the session specified by memory.
213
213
  db_connection (DbmsConnectionInfo | None): The database connection information.
214
+ An already connected Neo4j driver can be passed via `DbmsConnectionInfo(driver=...)`.
215
+ The driver is not closed by the session.
214
216
  The instance type is detected from the connected database, which also supports virtual graph and composite instances.
215
217
  ttl (datetime.timedelta | None): The session's time to live after inactivity.
216
218
  cloud_location (CloudLocation | None): The cloud location where the GDS Session will run.
@@ -219,7 +221,7 @@ class GdsSessions:
219
221
  Required for the Standalone session type; must not be provided for Attached sessions.
220
222
  Use `available_cloud_locations()` to list all valid provider/region combinations.
221
223
  timeout (int | None): Optional timeout (in seconds) when waiting for session to become ready. If unset the method will wait forever. If set and session does not become ready an exception will be raised. It is user responsibility to ensure resource gets cleaned up in this situation.
222
- neo4j_driver_config (dict[str, Any] | None): Optional configuration for the Neo4j driver to the Neo4j DBMS. Only relevant if `db_connection` is specified..
224
+ neo4j_driver_config (dict[str, Any] | None): Optional configuration for the Neo4j driver to the Neo4j DBMS. Only relevant if `db_connection` is specified and does not contain a `driver`.
223
225
  arrow_client_options (dict[str, Any] | None): Optional configuration for the Arrow Flight client. The key ``call_timeout`` sets the per-call RPC timeout in seconds (default 30s).
224
226
  show_progress (bool): Whether the returned client should print its own job-progress bars (projection, algorithm execution, ...). Defaults to True.
225
227
  Returns
@@ -332,14 +334,21 @@ class GdsSessions:
332
334
  def _create_db_runner(
333
335
  self, db_connection: DbmsConnectionInfo, config: dict[str, Any] | None = None
334
336
  ) -> Neo4jQueryRunner:
335
- db_runner = Neo4jQueryRunner.create_for_db(
336
- endpoint=db_connection.get_uri(),
337
- auth=db_connection.get_auth(),
338
- aura_ds=True,
339
- show_progress=False,
340
- database=db_connection.database,
341
- config=config,
342
- )
337
+ if db_connection.driver is not None:
338
+ db_runner = Neo4jQueryRunner.create_for_db(
339
+ endpoint=db_connection.driver,
340
+ show_progress=False,
341
+ database=db_connection.database,
342
+ )
343
+ else:
344
+ db_runner = Neo4jQueryRunner.create_for_db(
345
+ endpoint=db_connection.get_uri(),
346
+ auth=db_connection.get_auth(),
347
+ aura_ds=True,
348
+ show_progress=False,
349
+ database=db_connection.database,
350
+ config=config,
351
+ )
343
352
  self._validate_db_connection(db_runner)
344
353
  return db_runner
345
354
 
@@ -57,6 +57,7 @@ class ProjectProtocol(ABC):
57
57
  relationship_properties: list[str] | None = None,
58
58
  job_id: str | None = None,
59
59
  concurrency: int | None = None,
60
+ read_concurrency: int | None = None,
60
61
  undirected_relationship_types: list[str] | None = None,
61
62
  inverse_indexed_relationship_types: list[str] | None = None,
62
63
  batch_size: int | None = None,
@@ -150,6 +151,7 @@ class ProjectProtocolV3(ProjectProtocol):
150
151
  relationship_properties: list[str] | None = None,
151
152
  job_id: str | None = None,
152
153
  concurrency: int | None = None,
154
+ read_concurrency: int | None = None,
153
155
  undirected_relationship_types: list[str] | None = None,
154
156
  inverse_indexed_relationship_types: list[str] | None = None,
155
157
  batch_size: int | None = None,
@@ -227,6 +229,7 @@ class ProjectProtocolV4(ProjectProtocol):
227
229
  relationship_properties: list[str] | None = None,
228
230
  job_id: str | None = None,
229
231
  concurrency: int | None = None,
232
+ read_concurrency: int | None = None,
230
233
  undirected_relationship_types: list[str] | None = None,
231
234
  inverse_indexed_relationship_types: list[str] | None = None,
232
235
  batch_size: int | None = None,
@@ -237,7 +240,10 @@ class ProjectProtocolV4(ProjectProtocol):
237
240
  job_id=job_id,
238
241
  undirectedRelationshipTypes=undirected_relationship_types,
239
242
  inverseIndexedRelationshipTypes=inverse_indexed_relationship_types,
240
- readConcurrency=concurrency,
243
+ concurrency=concurrency,
244
+ # unused in so <2026.12
245
+ readConcurrency=read_concurrency,
246
+ batch_size=batch_size,
241
247
  )
242
248
 
243
249
  params = {
@@ -245,7 +251,7 @@ class ProjectProtocolV4(ProjectProtocol):
245
251
  "node_labels": node_label_filter,
246
252
  "relationship_types": relationship_type_filter,
247
253
  "configuration": configuration,
248
- "arrow_config": build_arrow_config(self._arrow_client, batch_size),
254
+ "arrow_config": build_arrow_config(self._arrow_client),
249
255
  }
250
256
 
251
257
  actual_job_id, projection_query_runner = self._start_job(
@@ -71,6 +71,7 @@ class ProjectionRunner:
71
71
  relationship_properties: list[str] | None = None,
72
72
  job_id: str | None = None,
73
73
  concurrency: int | None = None,
74
+ read_concurrency: int | None = None,
74
75
  undirected_relationship_types: list[str] | None = None,
75
76
  inverse_indexed_relationship_types: list[str] | None = None,
76
77
  batch_size: int | None = None,
@@ -84,6 +85,7 @@ class ProjectionRunner:
84
85
  relationship_properties,
85
86
  job_id,
86
87
  concurrency,
88
+ read_concurrency,
87
89
  undirected_relationship_types,
88
90
  inverse_indexed_relationship_types,
89
91
  batch_size,
@@ -65,6 +65,20 @@ class SessionTargetResolver:
65
65
  instance_id = db_connection.aura_instance_id
66
66
  database_id = db_connection.aura_database_id
67
67
 
68
+ if db_connection.driver is not None:
69
+ if driver_config is not None:
70
+ raise ValueError(
71
+ "`neo4j_driver_config` cannot be used together with a `driver`, as the driver is already configured."
72
+ )
73
+
74
+ db_runner = self._create_db_runner(db_connection, None)
75
+ instance_type = self._detect_instance_type(db_runner, db_connection)
76
+ if instance_type is InstanceType.DATABASE and instance_id:
77
+ instance_id = self._resolve_aura_db_instance(instance_id).id
78
+ if not instance_id:
79
+ raise ValueError("'aura_instance_id' must be provided when passing a driver object.")
80
+ return self._attached(db_runner, instance_type, instance_id, database_id)
81
+
68
82
  if db_connection.uri:
69
83
  # With a uri we can connect right away, so detect the type before involving the Aura API.
70
84
  db_runner = self._create_db_runner(db_connection, driver_config)
@@ -133,7 +147,8 @@ class SessionTargetResolver:
133
147
 
134
148
  def _detect_instance_type(self, db_runner: Neo4jQueryRunner, db_connection: DbmsConnectionInfo) -> InstanceType:
135
149
  instance_type = InstanceTypeResolver(db_runner).resolve()
136
- self._logger.debug(f"Detected instance type `{instance_type}` for `{db_connection.get_uri()}`.")
150
+ target = db_connection.uri or "the provided driver"
151
+ self._logger.debug(f"Detected instance type `{instance_type}` for `{target}`.")
137
152
  return instance_type
138
153
 
139
154
 
@@ -1,2 +1,2 @@
1
- __version__ = "2.4"
1
+ __version__ = "2.5"
2
2
  __min_server_version__ = "2.13.0" # matches installation.adoc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphdatascience
3
- Version: 2.4
3
+ Version: 2.5
4
4
  Summary: A Python client for the Neo4j Graph Data Science (GDS) library
5
5
  Author-email: Neo4j <team-gds@neo4j.org>
6
6
  License-Expression: Apache-2.0
@@ -4,7 +4,7 @@ graphdatascience/graph_data_science.py,sha256=fgvbhqpKWGpnmVSrr3b1Aa8KT65Hip46-U
4
4
  graphdatascience/ignored_server_endpoints.py,sha256=2tF3fyV6B9QwN6CuTGJjP49V17xHNsTycOGKXS0vJo0,3289
5
5
  graphdatascience/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  graphdatascience/utils.py,sha256=fsgilpAzcy0DHGXkbNI49h5v0MJcG2mCk_Iailv0GOc,434
7
- graphdatascience/version.py,sha256=YFz5eb2D89ga5GuZuN3mSJOrdVFsYtuYg2Q0UD6a7c4,83
7
+ graphdatascience/version.py,sha256=8Fk1vJUUGF7sdBMJ8HowCTpMQL6-uCM4bzAV_RLxXSA,83
8
8
  graphdatascience/arrow_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  graphdatascience/arrow_client/arrow_authentication.py,sha256=JlYQFIIqK0kAff55YQ_Jim6Q3CjhBUtv3yful111m70,509
10
10
  graphdatascience/arrow_client/arrow_base_model.py,sha256=-Tfa-pKkwrDLgfFcErdJF78YymremHPdah9P6pG9VRY,337
@@ -73,8 +73,8 @@ graphdatascience/procedure_surface/api/topological_link_prediction_endpoints.py,
73
73
  graphdatascience/procedure_surface/api/util_endpoints.py,sha256=-gAei7KYUhiTzd1Du3U4oe4wZ0erfe92j5U9q4aZv1U,3069
74
74
  graphdatascience/procedure_surface/api/write_job_handle.py,sha256=td8E7RwXFUF_QXhbj7VHnQnr_sF78gJdojAwmqpVDNk,5007
75
75
  graphdatascience/procedure_surface/api/write_protocol.py,sha256=jbkTKg-NiPYt387C6XxwzBDI-QlDprI2wJ8w4sTzDrA,944
76
- graphdatascience/procedure_surface/api/catalog/__init__.py,sha256=GObSQu7_bViADZbalGyr0zYGDmnaYyh22DAWfLDpUjs,3197
77
- graphdatascience/procedure_surface/api/catalog/catalog_endpoints.py,sha256=H3HfiYl3USn-metfb58xEjUK8IKhjaJ3n_75wGoqMWU,12376
76
+ graphdatascience/procedure_surface/api/catalog/__init__.py,sha256=X31HSQLMJq3HNyDv3BEmYlHPIrEsKy_SaPnalHJ8ZJM,3371
77
+ graphdatascience/procedure_surface/api/catalog/catalog_endpoints.py,sha256=c0d2D4L3ZSKYfc4m90aXViJpQ1AlrF_cRz4acKldkW4,12402
78
78
  graphdatascience/procedure_surface/api/catalog/dataset_endpoints.py,sha256=KD9hO-LqGMo1W80UA1_ZK3pjTd-5rtlkp1-e3RMiP8g,5322
79
79
  graphdatascience/procedure_surface/api/catalog/graph_export_endpoints.py,sha256=oMZzj4AXy3jC482lMKv7FSKJgug1XCfo2-8oP-Nph0E,4766
80
80
  graphdatascience/procedure_surface/api/catalog/graph_sampling_endpoints.py,sha256=0NEJxPWQkBL2yrO1bOyrkPV6gpJbUcEM7lJWt_nCRFI,9302
@@ -85,12 +85,13 @@ graphdatascience/procedure_surface/api/catalog/relationship_properties_endpoints
85
85
  graphdatascience/procedure_surface/api/catalog/relationship_property_endpoints.py,sha256=jqizbphzhCEXFm26Z1CwMZsBLQ9UQvNfEcel1QDkeUA,2475
86
86
  graphdatascience/procedure_surface/api/catalog/relationships_data_frame.py,sha256=mnGoxtqDRjj2n0VKnxbdwcY2ZEiyRGLRwETpsjtXxDE,1982
87
87
  graphdatascience/procedure_surface/api/catalog/relationships_endpoints.py,sha256=UmuS6nbwkzbQqfDm95YH_AEY6JQghHP7eRcj8FIhq7U,10930
88
- graphdatascience/procedure_surface/api/catalog/scale_properties_endpoints.py,sha256=6OK9lYzTRyuTUQQwbGq-yrZSqNlSXJagTyKl2R_j0XE,10722
88
+ graphdatascience/procedure_surface/api/catalog/scale_properties_endpoints.py,sha256=AHzGl5SPqjrvAOFI336EPdpsbhA5p0mwyvSh0g_sr8c,10712
89
+ graphdatascience/procedure_surface/api/catalog/scale_properties_session_endpoints.py,sha256=_KlmEFnTDMGu1XwwJ9HGQEjYUgE9ppLVJ1nppVy1Xgs,2429
89
90
  graphdatascience/procedure_surface/api/catalog/scaler_config.py,sha256=MC1b1QHsK91NmCPSOmIaqEtAsYmROHYyoxh18MafX3s,412
90
91
  graphdatascience/procedure_surface/api/catalog/validation.py,sha256=HfqDCM7Hbu_R7TYLDrHR4i9ixlDYKtjI0IP3-1qgSlk,696
91
92
  graphdatascience/procedure_surface/api/centrality/__init__.py,sha256=-DxmjSAg8RYdH2t2jksqNe2qgMmbBtaXGKWmFkvht6U,4978
92
- graphdatascience/procedure_surface/api/centrality/articlerank_endpoints.py,sha256=67tobjwQerp1_w7dOYgtW_tNnSiKz1J8qoisS_2rUSg,15466
93
- graphdatascience/procedure_surface/api/centrality/articlerank_session_endpoints.py,sha256=3rXmRlTKmVv2dUHgOXI9iZtcy1LiER2jUhnir-vsrG0,3198
93
+ graphdatascience/procedure_surface/api/centrality/articlerank_endpoints.py,sha256=j0JzIyzWuVHV4S3p8wtkVXB7lrCLjmYVbZhuL4Bv-J4,15456
94
+ graphdatascience/procedure_surface/api/centrality/articlerank_session_endpoints.py,sha256=6S01gua06C9rNXpyFhQ8hjL4_Q5Ve1WwQjNsAriS2EQ,3196
94
95
  graphdatascience/procedure_surface/api/centrality/articulationpoints_endpoints.py,sha256=8A0gqdeqrpsTNukQUNB-y0hSBGOR6jWel_JXIGPrW5Q,8628
95
96
  graphdatascience/procedure_surface/api/centrality/articulationpoints_session_endpoints.py,sha256=R6be2gLzen5dYe6Qwq0veP6PHGs02jBjz_THKN-efz0,1977
96
97
  graphdatascience/procedure_surface/api/centrality/betweenness_endpoints.py,sha256=EMuiZydQaf-l94mY0n7DQS_75JrXyOuLzs4wy-Xbg3s,11462
@@ -105,12 +106,12 @@ graphdatascience/procedure_surface/api/centrality/closeness_harmonic_session_end
105
106
  graphdatascience/procedure_surface/api/centrality/closeness_session_endpoints.py,sha256=8Wz4DHzmxi3NlUJsdN8Wcf6fDqCwQrAVn7_pNNa1Hk4,2457
106
107
  graphdatascience/procedure_surface/api/centrality/degree_endpoints.py,sha256=a90Ia28deipCysPuiGwfcGwvOjq6rxHaLI0lmNS0dDs,11522
107
108
  graphdatascience/procedure_surface/api/centrality/degree_session_endpoints.py,sha256=TjrVkPGnP4BROdho9X1Y2szAhTrU54dg3lbAyRLKnlo,2229
108
- graphdatascience/procedure_surface/api/centrality/eigenvector_endpoints.py,sha256=6XKvJJ4-4ESxISkgp6bbCR2PRcVbdXHUTlgDu3x8eLI,14824
109
- graphdatascience/procedure_surface/api/centrality/eigenvector_session_endpoints.py,sha256=F3K3Fg8LqMd8CtqZGjVjp2-_iRxsX99dSNL9ISiesZE,2980
109
+ graphdatascience/procedure_surface/api/centrality/eigenvector_endpoints.py,sha256=pb6sLNQuTDx0aBovhHTY5EBVVZo9VAUo2A8UaZ9D4H8,14814
110
+ graphdatascience/procedure_surface/api/centrality/eigenvector_session_endpoints.py,sha256=MYAzVmtZEjd5vp6xTybPgwFcADHnRaZtlUQRPI7Gycc,2978
110
111
  graphdatascience/procedure_surface/api/centrality/hits_endpoints.py,sha256=LDvGOZQOVhrMrcwM7df5WWOn-vnZg_UrwiIghrD8QDc,9812
111
112
  graphdatascience/procedure_surface/api/centrality/hits_session_endpoints.py,sha256=3Sd5mjsuiUg11ZSqF6jTuDq4BSay7ifiv-LI8d6H84Q,2383
112
- graphdatascience/procedure_surface/api/centrality/pagerank_endpoints.py,sha256=QYjpvVoLdxLnczX3Co9E1zra7ACsksEO8g3jw639EiM,14735
113
- graphdatascience/procedure_surface/api/centrality/pagerank_session_endpoints.py,sha256=w-HhfAnpJlcpoen58uCLBzgvIb-_M2EMK0Iq5zynDcc,3180
113
+ graphdatascience/procedure_surface/api/centrality/pagerank_endpoints.py,sha256=ptoLQS_ViVCQfrfbLvpBZTyyvIxUIaQnKw3IvDI-3u8,14725
114
+ graphdatascience/procedure_surface/api/centrality/pagerank_session_endpoints.py,sha256=oXlG15UF4_JLAkZ3XPh3rz6AGKH9Ycjv6Nl9j2nld7s,3178
114
115
  graphdatascience/procedure_surface/api/community/__init__.py,sha256=eBRPcTcOoY247mfHOnQDvZjgzEV3k6QSXt6LnRnuOYE,7707
115
116
  graphdatascience/procedure_surface/api/community/clique_counting_endpoints.py,sha256=WXWaHrPLKafFjwHiBhVKWYqRaSp-YMwodlp9qYMX-Ls,7661
116
117
  graphdatascience/procedure_surface/api/community/clique_counting_session_endpoints.py,sha256=rQV_DmmdKrt8BKSAXHyDJBM_JWV5jdMJm3IjuDKCyHk,1957
@@ -159,14 +160,14 @@ graphdatascience/procedure_surface/api/node_embedding/fastpath_endpoints.py,sha2
159
160
  graphdatascience/procedure_surface/api/node_embedding/fastpath_session_endpoints.py,sha256=W7sBtKaVmSAw3f98euuqPVOaWiI6p_PJldC4pmS4-vQ,4238
160
161
  graphdatascience/procedure_surface/api/node_embedding/fastrp_endpoints.py,sha256=9NEuPhb0vPmbwtTALWVOmpTYBmMAZjsvhJDVvIzvoRM,14146
161
162
  graphdatascience/procedure_surface/api/node_embedding/fastrp_session_endpoints.py,sha256=c8lkZvqmyRC-da4BcjJWzX1rNDJb947MPkFBRAy-Bp8,3305
162
- graphdatascience/procedure_surface/api/node_embedding/graphsage_endpoints.py,sha256=P86-xb8Ygy99QYUWbTZLR1dNcudgEdbXSvUOqIV_wLY,7651
163
+ graphdatascience/procedure_surface/api/node_embedding/graphsage_endpoints.py,sha256=U4D3EFXfNF1KGPaJ64zHZKGml44V5ql1Es6rvp_B1oo,7661
163
164
  graphdatascience/procedure_surface/api/node_embedding/graphsage_model.py,sha256=WH4FLqXdusGcBK9bsXgDRLvGHaPQ1daoa_ZBbCnxQT4,8385
164
165
  graphdatascience/procedure_surface/api/node_embedding/graphsage_predict_endpoints.py,sha256=Xxu0xnA0uwCODbwNkDZFO5GVTrqGW-MlEn8wnhsWucg,8020
165
166
  graphdatascience/procedure_surface/api/node_embedding/graphsage_results.py,sha256=1F7xTEuuMkfCmrx-I28Hr-gG0L1S0vcXPZVF_97ZCME,1490
166
167
  graphdatascience/procedure_surface/api/node_embedding/graphsage_supervised_endpoints.py,sha256=NZJgBCJ7Y9NBoiiDIJZXw5dxHq1zI9penxIQcYm_XNY,9884
167
168
  graphdatascience/procedure_surface/api/node_embedding/graphsage_supervised_model.py,sha256=_Sik9I8fXwdtpMv0J_ScCkqaO3wqPVwnXAgNEDJaQA0,7876
168
169
  graphdatascience/procedure_surface/api/node_embedding/graphsage_supervised_session_endpoints.py,sha256=2eCjduG0NYUPa1X1ZAfS3-bBwfnPvjX7dBm_DPfgNTc,2301
169
- graphdatascience/procedure_surface/api/node_embedding/graphsage_train_endpoints.py,sha256=WEsWmJgx_qHnS2QMA1ok-TgeXRWxkdXTIrMxKvpqeHA,5902
170
+ graphdatascience/procedure_surface/api/node_embedding/graphsage_train_endpoints.py,sha256=aTlPa1pAWqJG2EqVVl2xzTRw5QZKRjPHU3s9WYjmTYs,5912
170
171
  graphdatascience/procedure_surface/api/node_embedding/graphsage_unsupervised_endpoints.py,sha256=XBbvEm_y12auhSQ8EYARIMnggRMqHBHHsT1CLG80dew,9295
171
172
  graphdatascience/procedure_surface/api/node_embedding/graphsage_unsupervised_model.py,sha256=aYmv6y6XFwcNVwdro2SKrmEMC6s6ZQmgnSBdP30bbT8,7332
172
173
  graphdatascience/procedure_surface/api/node_embedding/graphsage_unsupervised_session_endpoints.py,sha256=3SIgdwd9y9BbsNE-E4Lql-8kzf5qqCcCIWycgfkymrI,2289
@@ -174,12 +175,13 @@ graphdatascience/procedure_surface/api/node_embedding/hashgnn_endpoints.py,sha25
174
175
  graphdatascience/procedure_surface/api/node_embedding/hashgnn_session_endpoints.py,sha256=7gKjXRNp1_U_n_ec08nMYFDopwjeFC1NYnRBslD9TvU,3373
175
176
  graphdatascience/procedure_surface/api/node_embedding/node2vec_endpoints.py,sha256=-wgVxqPmUNn0oIqQSdVAOtO1UAOoP7Yht6lykl_Y_Mk,14673
176
177
  graphdatascience/procedure_surface/api/node_embedding/node2vec_session_endpoints.py,sha256=6kAULslckVYAYq0at8uZ9hzLkQzDmoCww177W4L0xZs,4098
177
- graphdatascience/procedure_surface/api/pathfinding/__init__.py,sha256=d2HCmSMYcbbHGbLI5kr_y5TV7OGT4uqrY4ax3dffcOQ,8475
178
+ graphdatascience/procedure_surface/api/pathfinding/__init__.py,sha256=G_Xg0OB0fmNJ9IKfQ8jwvdFDxWGCU0MCfXmJXYVSOIk,8785
178
179
  graphdatascience/procedure_surface/api/pathfinding/all_shortest_path_endpoints.py,sha256=4F0opWBLVB_qIjFgvLE1MnBZydz6zk4oIvvdJaiii7c,4203
179
180
  graphdatascience/procedure_surface/api/pathfinding/all_shortest_path_session_endpoints.py,sha256=gSuFSqX9nDTb_IuJdDJzJGoWzW4EXoyQhx3xvtBcls8,2759
180
181
  graphdatascience/procedure_surface/api/pathfinding/bfs_endpoints.py,sha256=3IK12kP3SpTSe8QJo5kx4-liavu3amjBX68SUrmmaaM,7181
181
182
  graphdatascience/procedure_surface/api/pathfinding/bfs_session_endpoints.py,sha256=XY90zrlcaTUOK-AXaTrq9r0dOa_2vvsXwlTeAnodPUE,2245
182
183
  graphdatascience/procedure_surface/api/pathfinding/dag_endpoints.py,sha256=eO3b6T9AC0uzuXgGiGBLENhW9dkHs51cK5BlCOWY9uY,750
184
+ graphdatascience/procedure_surface/api/pathfinding/dag_session_endpoints.py,sha256=AmST2drhlOkdXSFYmIQnrvqBJBuwsl5KtI6dqYtRogo,882
183
185
  graphdatascience/procedure_surface/api/pathfinding/dfs_endpoints.py,sha256=vhTDohTKBNLPJapwSrp4kAhAbiuzY8H_0lDN7SruvNo,7175
184
186
  graphdatascience/procedure_surface/api/pathfinding/dfs_session_endpoints.py,sha256=kC_noyoYcIryCNRYnmpPWTq8RfxqVtFztdS2KR8go84,2245
185
187
  graphdatascience/procedure_surface/api/pathfinding/dijkstra_endpoints.py,sha256=UQCfypPb_1nVlc9kkhJHYI8XGpwXeMUB3kapTAiUwvI,9119
@@ -215,6 +217,7 @@ graphdatascience/procedure_surface/api/pathfinding/spanning_tree_session_endpoin
215
217
  graphdatascience/procedure_surface/api/pathfinding/steiner_tree_endpoints.py,sha256=sWpbUsRnJCLS0bMUcmXYVWLz6-D5hlY4uAf9D2eNtrA,11401
216
218
  graphdatascience/procedure_surface/api/pathfinding/steiner_tree_session_endpoints.py,sha256=LHLLG41La7jMfh8LyN6o-ehJyvaU8Ud6gNb31UTYiYg,2542
217
219
  graphdatascience/procedure_surface/api/pathfinding/topological_sort_endpoints.py,sha256=wbOOf_-9806RjTJC4Ni5ELEcVbEKUeijgm36OPNk4x4,1814
220
+ graphdatascience/procedure_surface/api/pathfinding/topological_sort_session_endpoints.py,sha256=j3Ak36QEzIzO4INZ1LNHytwxMDtbW8f38sidYglfKNc,2135
218
221
  graphdatascience/procedure_surface/api/pipeline/__init__.py,sha256=88Cf4RZkLqpL8III6RZ6Zu0yquQCeZ1V06vPg03NcHE,3246
219
222
  graphdatascience/procedure_surface/api/pipeline/link_prediction_model.py,sha256=acFv0e8CM2sil-dBZQpFeZdB_3VXjt3TklwvSz6nX_A,5020
220
223
  graphdatascience/procedure_surface/api/pipeline/link_prediction_pipeline.py,sha256=YjkKddpDVHvGKeXowU7HGyOlFAp0nnLk5kNSYtRZZo8,8646
@@ -269,16 +272,16 @@ graphdatascience/procedure_surface/arrow/stream_result_mapper.py,sha256=XGGT8ZVf
269
272
  graphdatascience/procedure_surface/arrow/table_endpoints_helper.py,sha256=i9Wlni7AK-tzSfuAMV4PD_BZWoxmNwJ358lgzARRpZU,614
270
273
  graphdatascience/procedure_surface/arrow/util_arrow_endpoints.py,sha256=2ynrTlGbcrXcfjQQW5yHSO0RigtALVNzfnc3UMqy-cI,2429
271
274
  graphdatascience/procedure_surface/arrow/catalog/__init__.py,sha256=rxDN3YrT4ipSfdg9GFw3gsUKzec9sNAdz_PUSHIDHwk,372
272
- graphdatascience/procedure_surface/arrow/catalog/catalog_arrow_endpoints.py,sha256=iK8ufII657zZ2kahVRAlWNwVqGEWIJld38iMSVzVVQ4,14692
275
+ graphdatascience/procedure_surface/arrow/catalog/catalog_arrow_endpoints.py,sha256=IMIfcAUaJoKv6x_otCcbu5mp41eD8W5nCi2GwY5w0N4,14700
273
276
  graphdatascience/procedure_surface/arrow/catalog/graph_backend_arrow.py,sha256=JPHPct2ux8HpXrB_7cumjNTQtL2RjINYtFEnS-i36rY,1388
274
277
  graphdatascience/procedure_surface/arrow/catalog/graph_export_arrow_endpoints.py,sha256=fhsdh9Z3bzeCopiPaywhM31aOwW1ju8aSWvoYgIoaNw,1572
275
278
  graphdatascience/procedure_surface/arrow/catalog/graph_ops_arrow.py,sha256=EmCWwrqID1HfBBmU_JVUmjxBSkkiq2DSlTj_-p8_FRs,1660
276
279
  graphdatascience/procedure_surface/arrow/catalog/graph_sampling_arrow_endpoints.py,sha256=wc3ZcSlKo6xxWUNwk2aBeaOJ0oYhJe8wMe8jVU_oQIo,6719
277
280
  graphdatascience/procedure_surface/arrow/catalog/node_label_arrow_endpoints.py,sha256=rdw6t9mvbRB7TM-RxpFMqvHvKirkfOGLzsNL0KBEuTg,3103
278
281
  graphdatascience/procedure_surface/arrow/catalog/node_properties_arrow_endpoints.py,sha256=pZmpmb55i64yIqg2pJ1uUCSEQo3oEO9W04OdCqJ1-i0,6129
279
- graphdatascience/procedure_surface/arrow/catalog/projection_arrow_endpoints.py,sha256=Odjd2tgqUMShk2wepI01DPNtVxZm94Ba1HSA0Yamflk,13833
282
+ graphdatascience/procedure_surface/arrow/catalog/projection_arrow_endpoints.py,sha256=BrfTvuItyZwCKqZZ-h6QW47ogD4vm5zhorBgGi1Cswg,14221
280
283
  graphdatascience/procedure_surface/arrow/catalog/relationship_arrow_endpoints.py,sha256=Abj6D_e0BDHgpxjJdwVk_xjQ9XtfSYOK-kgtjI3JFkU,9555
281
- graphdatascience/procedure_surface/arrow/catalog/scale_properties_arrow_endpoints.py,sha256=mHKD1Lm6BpV6Jn5DLSNbqYXLcWJ8YjZwWvPA6ytR1KQ,6504
284
+ graphdatascience/procedure_surface/arrow/catalog/scale_properties_arrow_endpoints.py,sha256=KOw7SyH1LJ3um5f4LOdU4zsSM5Lu6Wku5Zo08fgOhhs,7681
282
285
  graphdatascience/procedure_surface/arrow/centrality/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
283
286
  graphdatascience/procedure_surface/arrow/centrality/articlerank_arrow_endpoints.py,sha256=Px2PhWMo7uBnKTZ80ih1-ZrKv0ylNTsboXlayYYQhrM,10318
284
287
  graphdatascience/procedure_surface/arrow/centrality/articulationpoints_arrow_endpoints.py,sha256=pG-meS3jq1BS6i2HpYoFB0PTY6TnHFj1wXyv3p6iebk,6552
@@ -290,7 +293,7 @@ graphdatascience/procedure_surface/arrow/centrality/closeness_harmonic_arrow_end
290
293
  graphdatascience/procedure_surface/arrow/centrality/degree_arrow_endpoints.py,sha256=K0onxlH9zhvAiywLNdHTL8zJW7Gze_GCEajFgj1hyJ8,7250
291
294
  graphdatascience/procedure_surface/arrow/centrality/eigenvector_arrow_endpoints.py,sha256=ZDQSH2ASu9LbEaRTnDHt9qSG89pvi68QVSf-rPfK2_Y,9787
292
295
  graphdatascience/procedure_surface/arrow/centrality/hits_arrow_endpoints.py,sha256=9eWa3RHF9bh-Tkm5ajob-jw-tekrYUOy83K-WUjJBOY,8817
293
- graphdatascience/procedure_surface/arrow/centrality/pagerank_arrow_endpoints.py,sha256=hqP7hyOqBSw_C4pOGpibqDKSKG4EG7ePfjO11XQbGvU,12640
296
+ graphdatascience/procedure_surface/arrow/centrality/pagerank_arrow_endpoints.py,sha256=lC3hw7a4Pc8dTFHzg0MVXsumSY-NLpDyjMJFUHrSikU,12638
294
297
  graphdatascience/procedure_surface/arrow/community/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
295
298
  graphdatascience/procedure_surface/arrow/community/clique_counting_arrow_endpoints.py,sha256=YF5ZUVOKIQYlfsl6HfAAF8VP2DnAz2-n7QwyrqjwARA,6403
296
299
  graphdatascience/procedure_surface/arrow/community/conductance_arrow_endpoints.py,sha256=yIDzCGj2fpucHIOfEfRSoyK4eHcA0LA0T6AdGy9fEQA,2752
@@ -326,7 +329,7 @@ graphdatascience/procedure_surface/arrow/node_embedding/node2vec_arrow_endpoints
326
329
  graphdatascience/procedure_surface/arrow/pathfinding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
327
330
  graphdatascience/procedure_surface/arrow/pathfinding/all_shortest_path_arrow_endpoints.py,sha256=dHdd2mB4c_eh9W3FJHHJdmdYGHGba_VI2qUIDtJbJ8U,4900
328
331
  graphdatascience/procedure_surface/arrow/pathfinding/bfs_arrow_endpoints.py,sha256=0rhu1yCFvRAUl6Lv-EOFZMyIx7qlfbigZGKywhmLZ7E,6328
329
- graphdatascience/procedure_surface/arrow/pathfinding/dag_arrow_endpoints.py,sha256=67LLtogR25dcdK52x_OJSXBknNSj4FYXctA_yMIehx8,1264
332
+ graphdatascience/procedure_surface/arrow/pathfinding/dag_arrow_endpoints.py,sha256=1QkoXatp4gdgw_ULKtUa-xBwG110PYmj3IA3urkgeXw,1348
330
333
  graphdatascience/procedure_surface/arrow/pathfinding/dfs_arrow_endpoints.py,sha256=HMDFhU1LdN0y8am5mrZl0QQhVH7rCf0M57NGtQa8XiY,6328
331
334
  graphdatascience/procedure_surface/arrow/pathfinding/dijkstra_arrow_endpoints.py,sha256=90o31ppDztuml09R9M6okXFIagyIuW8BNa6eiADeGA8,7199
332
335
  graphdatascience/procedure_surface/arrow/pathfinding/k_spanning_tree_arrow_endpoints.py,sha256=pwgx54QlQoWosGaMhs9D7NXB2QDM5nA5_COfmgJMtVs,3681
@@ -344,7 +347,7 @@ graphdatascience/procedure_surface/arrow/pathfinding/source_target_dijkstra_arro
344
347
  graphdatascience/procedure_surface/arrow/pathfinding/source_target_yens_arrow_endpoints.py,sha256=SXva-rCuUyCjnlcxeeMtz4L5fDwpxPCSqU7Z10c6YgU,7277
345
348
  graphdatascience/procedure_surface/arrow/pathfinding/spanning_tree_arrow_endpoints.py,sha256=WW0uYGA8Lwf4ygUojKqmYqR6TvEJ0af4LEUIAiMa1dU,8226
346
349
  graphdatascience/procedure_surface/arrow/pathfinding/steiner_tree_arrow_endpoints.py,sha256=UeLAPeFV74An4x81kciu0s_HEUex3_tK53x7ETcgzPw,9034
347
- graphdatascience/procedure_surface/arrow/pathfinding/topological_sort_arrow_endpoints.py,sha256=2wEhNbGjnKjVSDhXFR0qoEVxQgtl0SRSq29eWTl-9c8,1788
350
+ graphdatascience/procedure_surface/arrow/pathfinding/topological_sort_arrow_endpoints.py,sha256=Wkl4yEL-SpFcF-uiQuLlHx0Ecv3kKq_OPDzVvGN46iw,2806
348
351
  graphdatascience/procedure_surface/arrow/pipeline/__init__.py,sha256=fvRlTkZHrBVaCbUAtNQeGsVigs-IQsBn_ENpkf3KB4w,936
349
352
  graphdatascience/procedure_surface/arrow/pipeline/link_prediction_pipeline_arrow_endpoints.py,sha256=CNvCqRow7uZmTOgllY0H50FeoXLCkTvmORctxysoj5k,11186
350
353
  graphdatascience/procedure_surface/arrow/pipeline/link_prediction_predict_arrow_endpoints.py,sha256=4AS2iEFBh1dj321PI8fF4q388m1uOH1o_FWy4qmoPs4,6358
@@ -373,7 +376,7 @@ graphdatascience/procedure_surface/cypher/result_as_vector_utils.py,sha256=b5vqE
373
376
  graphdatascience/procedure_surface/cypher/topological_link_prediction_cypher_endpoints.py,sha256=dL46jNhIF9trFzMe56Wu4m67OuaCnTDZ4AclUttmzPw,4593
374
377
  graphdatascience/procedure_surface/cypher/util_cypher_endpoints.py,sha256=XMO4mqmHCnVUQwEgKxJs9FalgWmz-SKOsH1X2RrUHx0,1643
375
378
  graphdatascience/procedure_surface/cypher/catalog/__init__.py,sha256=xk5ULfjwwnPb2I_yn4OeITrovHoja7jCYKoal-oW49o,556
376
- graphdatascience/procedure_surface/cypher/catalog/catalog_cypher_endpoints.py,sha256=NWwboDumUuBQLbUFOEjTulP93REt6OqVdmhB0cz3x3I,11336
379
+ graphdatascience/procedure_surface/cypher/catalog/catalog_cypher_endpoints.py,sha256=FFSfyptiiVPgTJsh_aMHEZZrhaDygI-cNn_Ju5RxMKw,11418
377
380
  graphdatascience/procedure_surface/cypher/catalog/graph_backend_cypher.py,sha256=B3yOFqbEi8T2DawHZ5gGCf9Fx69E_QNY7BbgWuuvpeA,1539
378
381
  graphdatascience/procedure_surface/cypher/catalog/graph_export_cypher_endpoints.py,sha256=Si3f2cWjgbGOYc5jsNvIkxhnUJv3EvBfbKOvxKYpTog,3347
379
382
  graphdatascience/procedure_surface/cypher/catalog/graph_ops_cypher.py,sha256=hvUKqpzktEcknCMz2gDyALKIBXVg1zIuXF6k5qg1lhs,2050
@@ -476,7 +479,7 @@ graphdatascience/progress/query_progress_provider.py,sha256=EC0-Ch5SHGOnxXsMykln
476
479
  graphdatascience/progress/static_progress_provider.py,sha256=42LawQs4s9vvmC283AuriUHgyRYScfV22MDSexOxn9s,977
477
480
  graphdatascience/query_runner/__init__.py,sha256=E-sHkT372cQ6DI-Bx_xcEuKYAL7Es9fqSXrZofnD_U0,159
478
481
  graphdatascience/query_runner/db_environment_resolver.py,sha256=UFI71Cra91H7COCudnZQYGQoBMnYS7WFa9mQxvRstys,636
479
- graphdatascience/query_runner/neo4j_query_runner.py,sha256=TrVFbSOKLaRf6D9kvWhHBlOKUjaGsGyutawXy2covSs,20836
482
+ graphdatascience/query_runner/neo4j_query_runner.py,sha256=sMGXQX9VTIId-Y0jmoWCb1qwWr3OnYMV5GfTmyzbYqc,20986
480
483
  graphdatascience/query_runner/query_mode.py,sha256=Fxe_dyhUDG9_HF97ZBeRFLWlYobITGnW-aXBd6uBDao,1204
481
484
  graphdatascience/query_runner/query_runner.py,sha256=d_yYsjEoBowepP0j60Wgmy1woaVkZAEugfxXvXMzuME,2882
482
485
  graphdatascience/query_runner/query_type.py,sha256=tdq1F-grnedxZCCTDWoGdebvRkGyZQH69iTNlSyVe9k,491
@@ -512,11 +515,11 @@ graphdatascience/session/algorithm_category.py,sha256=d_biZKCF1jOYXx2--SqoEQ3Ccv
512
515
  graphdatascience/session/aura_api.py,sha256=N1hkrAiAfsCAM77DgcJfvNLd6IVNf5nZx4dpbyf_vXg,24594
513
516
  graphdatascience/session/aura_api_responses.py,sha256=fY5gjKI219aq_0H-YSKGFWYIg-uXu9r03QI1kLIO6nE,9940
514
517
  graphdatascience/session/aura_api_token_authentication.py,sha256=KWcG7v2_Id-IdxUXqT3ZnuFcWpPIC2BneeG_xj95P1Q,370
515
- graphdatascience/session/aura_graph_data_science.py,sha256=3pZGs08tkQZsGtOCIDbXp4SuetomP5P3W2UfjqWmWOA,45413
518
+ graphdatascience/session/aura_graph_data_science.py,sha256=nPWejDf1D5XM3k6_wLTYGVKu3gyF7l1WvQ72UQRWQ1Y,45553
516
519
  graphdatascience/session/cloud_location.py,sha256=cPiHTt_E0gS2dGXhEjvXfszVGrfu7l5SX9lcJThY-l8,318
517
- graphdatascience/session/dbms_connection_info.py,sha256=HN9mjwwvghG0m5FcfsUD2B4Z8ghUe_u8JhVJjCMcCJI,2738
520
+ graphdatascience/session/dbms_connection_info.py,sha256=GUzNko9Tu6PqBs38zhrVtw3l7smVy9I517KlpNAo1Ms,3523
518
521
  graphdatascience/session/endpoint_mappings.py,sha256=Se-jDoJ_cYkMjRPsCmuoQbbly9kYj_hyi2mT8L15ddQ,1348
519
- graphdatascience/session/gds_sessions.py,sha256=I2SvXrAuZaOyjZaJoUU4FptuU05xS6_gRkOUmJ6S4RI,18563
522
+ graphdatascience/session/gds_sessions.py,sha256=6mmTr_qyQ3HjzaB95AkbANFQwoJLttA0i-6XroU3flc,19047
520
523
  graphdatascience/session/graph_mapping_context.py,sha256=977O1iewG3wOaeB-51KpCzxBnw95zx7IcuHKAK5M5Jw,2116
521
524
  graphdatascience/session/graph_mappings_api.py,sha256=Z9__F6IPNQXTVF3PGw5BvxFXrRNiVJHgYdCJ1THuWvE,2881
522
525
  graphdatascience/session/instance_type.py,sha256=mlAKJVB1DMToz3JSqnImT7EDTbNfZhEvJBnQuyhsJM8,1423
@@ -524,22 +527,22 @@ graphdatascience/session/region_suggester.py,sha256=gB3WMrw6Xt_9Ji_A3IDCCU289_te
524
527
  graphdatascience/session/session_info.py,sha256=f4si0ZTLr6W5YhIv-Zks0fj6Nx026fPJxrmLi2pJB4A,2627
525
528
  graphdatascience/session/session_lifecycle_manager.py,sha256=Q0hEZHDsvosNrRGoaAWomGMuVhJkt_US6oZIV9CGRWM,2143
526
529
  graphdatascience/session/session_sizes.py,sha256=CaNecZ0ezdE4Qxre8zHPU1A8NQSNwZ6mOh5D2vo4XdU,2194
527
- graphdatascience/session/session_target.py,sha256=mDbRM2s6sQsiR6rN8S55VQwUzWyb9P9fOi4l42z6xIU,5937
530
+ graphdatascience/session/session_target.py,sha256=PzIrctRVVWD5m8LV2uZy348-ctSAFm2S-eiXM8VTtEI,6760
528
531
  graphdatascience/session/dbms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
529
532
  graphdatascience/session/dbms/instance_type_resolver.py,sha256=uibtyrQiJN21eQhvjX5D5v31DPyAimG7espbgI3SYPw,1639
530
533
  graphdatascience/session/dbms/protocol_resolver.py,sha256=rmF1pBqezUK71XGc8pcw9hDEafDsQ_eItCb9V-pJpXY,2313
531
534
  graphdatascience/session/dbms/protocol_version.py,sha256=regiA__hmlhUybIREH8wDzA7L_ryBgOvea0iMB0Mgds,323
532
535
  graphdatascience/session/remote_ops/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
533
536
  graphdatascience/session/remote_ops/arrow_config.py,sha256=ZYrCWIh00hZrEp4gBRd6gv1yeabLznJVhoX-bJwhZ_8,666
534
- graphdatascience/session/remote_ops/project_protocols.py,sha256=nYKxezmJgS0t9EkbrD8lhI8zj3qyDORP_WUTB0j5_00,13070
535
- graphdatascience/session/remote_ops/projection_runner.py,sha256=jIvvfh9M231wblDxfitp8SYZit-GTS5rIkHxu_en2QE,6316
537
+ graphdatascience/session/remote_ops/project_protocols.py,sha256=HImLblNfsqDqNDm0b31DjTC1FPK4trQfLu3VZGh6LbM,13306
538
+ graphdatascience/session/remote_ops/projection_runner.py,sha256=7UT1_2aydowUpfU7yOXB7YvGAamb1FVtenjRiVBmI44,6391
536
539
  graphdatascience/session/remote_ops/status.py,sha256=9XTdxUF6AuEPA2nRu8dfB0nALtB-J89EBkCxC8hWFww,112
537
540
  graphdatascience/session/remote_ops/write_protocols.py,sha256=pG_TEEpyd4vSxEuKvMtF5uk1NTQrVyWHd-0tLwa9Nt0,7565
538
541
  graphdatascience/versions/__init__.py,sha256=cUbnwCsz9bHVrTyL0r0LWFjcKWPPAIwmStByvHOLFCc,136
539
542
  graphdatascience/versions/semantic_version.py,sha256=ofr_NFoWTTKmYFRBqw2_FMwr8WeuBb-224gSiKCCbPQ,1519
540
543
  graphdatascience/versions/server_version.py,sha256=T0AQD1qkTzk5jsGGXIZv50wnJmRLd-sE76UyiVYVtIU,1351
541
- graphdatascience-2.4.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
542
- graphdatascience-2.4.dist-info/METADATA,sha256=jyiir14utnY5mNDEvz8dpi0W6dRSMW3pJcKQXbntz8s,8934
543
- graphdatascience-2.4.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
544
- graphdatascience-2.4.dist-info/top_level.txt,sha256=Ljwsr362rxJA4THQhwhcveOsmVwK9VCpsJ6hxCjGFOA,17
545
- graphdatascience-2.4.dist-info/RECORD,,
544
+ graphdatascience-2.5.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
545
+ graphdatascience-2.5.dist-info/METADATA,sha256=3iJP7yvLgrrHZvncJyLiscn9GIoEKaHwfYeKuu0mArk,8934
546
+ graphdatascience-2.5.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
547
+ graphdatascience-2.5.dist-info/top_level.txt,sha256=Ljwsr362rxJA4THQhwhcveOsmVwK9VCpsJ6hxCjGFOA,17
548
+ graphdatascience-2.5.dist-info/RECORD,,