Skip to content

Commit 6ac6eb4

Browse files
committed
Standardise some parameter descriptions
1 parent 3915e69 commit 6ac6eb4

File tree

5 files changed

+152
-173
lines changed

5 files changed

+152
-173
lines changed

graphdatascience/procedure_surface/api/centrality/articlerank_endpoints.py

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -44,33 +44,33 @@ def mutate(
4444
G : GraphV2
4545
The graph to run the algorithm on
4646
mutate_property : str
47-
The property name to store the ArticleRank score for each node
47+
Name of the node property to store the results in.
4848
damping_factor : Optional[float], default=None
49-
The damping factor controls the probability of a random jump to a random node
49+
Probability of a jump to a random node.
5050
tolerance : Optional[float], default=None
51-
Minimum change in scores between iterations
51+
Minimum change in scores between iterations.
5252
max_iterations : Optional[int], default=None
53-
The maximum number of iterations to run
53+
Maximum number of iterations to run.
5454
scaler : Optional[Any], default=None
55-
Configuration for scaling the scores
55+
Name of the scaler applied on the resulting scores.
5656
relationship_types : Optional[List[str]], default=None
57-
The relationships types used to select relationships for this algorithm run
57+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
5858
node_labels : Optional[List[str]], default=None
59-
The node labels used to select nodes for this algorithm run
59+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
6060
sudo : Optional[bool], default=None
61-
Override memory estimation limits
61+
Disable the memory guard.
6262
log_progress : Optional[bool], default=None
63-
Whether to log progress
63+
Display progress logging.
6464
username : Optional[str], default=None
6565
The username to attribute the procedure run to
6666
concurrency : Optional[Any], default=None
67-
The number of concurrent threads
67+
Number of threads to use for running the algorithm.
6868
job_id : Optional[Any], default=None
69-
An identifier for the job
69+
Identifier for the job.
7070
relationship_weight_property : Optional[str], default=None
71-
The property name that contains weight
71+
Name of the property to be used as weights.
7272
source_nodes : Optional[Any], default=None
73-
The source nodes for personalized ArticleRank
73+
List of node ids to use as starting points. Use a list of list pairs to associate each node with a bias > 0.
7474
7575
Returns
7676
-------
@@ -108,31 +108,31 @@ def stats(
108108
G : GraphV2
109109
The graph to run the algorithm on
110110
damping_factor : Optional[float], default=None
111-
The damping factor controls the probability of a random jump to a random node
111+
Probability of a jump to a random node.
112112
tolerance : Optional[float], default=None
113-
Minimum change in scores between iterations
113+
Minimum change in scores between iterations.
114114
max_iterations : Optional[int], default=None
115-
The maximum number of iterations to run
115+
Maximum number of iterations to run.
116116
scaler : Optional[Any], default=None
117-
Configuration for scaling the scores
117+
Name of the scaler applied on the resulting scores.
118118
relationship_types : Optional[List[str]], default=None
119-
The relationships types used to select relationships for this algorithm run
119+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
120120
node_labels : Optional[List[str]], default=None
121-
The node labels used to select nodes for this algorithm run
121+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
122122
sudo : Optional[bool], default=None
123-
Override memory estimation limits
123+
Disable the memory guard.
124124
log_progress : Optional[bool], default=None
125-
Whether to log progress
125+
Display progress logging.
126126
username : Optional[str], default=None
127127
The username to attribute the procedure run to
128128
concurrency : Optional[Any], default=None
129-
The number of concurrent threads
129+
Number of threads to use for running the algorithm.
130130
job_id : Optional[Any], default=None
131-
An identifier for the job
131+
Identifier for the job.
132132
relationship_weight_property : Optional[str], default=None
133-
The property name that contains weight
133+
Name of the property to be used as weights.
134134
source_nodes : Optional[Any], default=None
135-
The source nodes for personalized ArticleRank
135+
List of node ids to use as starting points. Use a list of list pairs to associate each node with a bias > 0.
136136
137137
Returns
138138
-------
@@ -232,31 +232,31 @@ def write(
232232
write_property : str
233233
The property name to write the ArticleRank score for each node
234234
damping_factor : Optional[float], default=None
235-
The damping factor controls the probability of a random jump to a random node
235+
Probability of a jump to a random node.
236236
tolerance : Optional[float], default=None
237-
Minimum change in scores between iterations
237+
Minimum change in scores between iterations.
238238
max_iterations : Optional[int], default=None
239-
The maximum number of iterations to run
239+
Maximum number of iterations to run.
240240
scaler : Optional[Any], default=None
241-
Configuration for scaling the scores
241+
Name of the scaler applied on the resulting scores.
242242
relationship_types : Optional[List[str]], default=None
243-
The relationships types used to select relationships for this algorithm run
243+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
244244
node_labels : Optional[List[str]], default=None
245-
The node labels used to select nodes for this algorithm run
245+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
246246
sudo : Optional[bool], default=None
247-
Override memory estimation limits
247+
Disable the memory guard.
248248
log_progress : Optional[bool], default=None
249-
Whether to log progress
249+
Display progress logging.
250250
username : Optional[str], default=None
251251
The username to attribute the procedure run to
252252
concurrency : Optional[Any], default=None
253-
The number of concurrent threads
253+
Number of threads to use for running the algorithm.
254254
job_id : Optional[Any], default=None
255-
An identifier for the job
255+
Identifier for the job.
256256
relationship_weight_property : Optional[str], default=None
257-
The property name that contains weight
257+
Name of the property to be used as weights.
258258
source_nodes : Optional[Any], default=None
259-
The source nodes for personalized ArticleRank
259+
List of node ids to use as starting points. Use a list of list pairs to associate each node with a bias > 0.
260260
write_concurrency : Optional[int], default=None
261261
The number of concurrent threads used for writing
262262

graphdatascience/procedure_surface/api/centrality/betweenness_endpoints.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,27 @@ def mutate(
4242
G : GraphV2
4343
The graph to run the algorithm on
4444
mutate_property : str
45-
The property name to store the betweenness centrality score for each node
45+
Name of the node property to store the results in.
4646
sampling_size : Optional[int], default=None
47-
The number of nodes to use for sampling.
47+
Number of source nodes to consider for computing centrality scores.
4848
sampling_seed : Optional[int], default=None
49-
The seed value for sampling randomization
49+
Seed value for the random number generator that selects source nodes.
5050
relationship_types : Optional[List[str]], default=None
51-
The relationship types used to select relationships for this algorithm run
51+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
5252
node_labels : Optional[List[str]], default=None
53-
The node labels used to select nodes for this algorithm run
53+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
5454
sudo : Optional[bool], default=None
55-
Override memory estimation limits
55+
Disable the memory guard.
5656
log_progress : Optional[bool], default=None
57-
Whether to log progress
57+
Display progress logging.
5858
username : Optional[str], default=None
5959
The username to attribute the procedure run to
6060
concurrency : Optional[Any], default=None
61-
The number of concurrent threads
61+
Number of threads to use for running the algorithm.
6262
job_id : Optional[Any], default=None
63-
An identifier for the job
63+
Identifier for the job.
6464
relationship_weight_property : Optional[str], default=None
65-
The property name that contains relationship weights
65+
Name of the property to be used as weights.
6666
6767
Returns
6868
-------
@@ -98,25 +98,25 @@ def stats(
9898
G : GraphV2
9999
The graph to run the algorithm on
100100
sampling_size : Optional[int], default=None
101-
The number of nodes to use for sampling.
101+
Number of source nodes to consider for computing centrality scores.
102102
sampling_seed : Optional[int], default=None
103-
The seed value for sampling randomization
103+
Seed value for the random number generator that selects source nodes.
104104
relationship_types : Optional[List[str]], default=None
105-
The relationship types used to select relationships for this algorithm run
105+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
106106
node_labels : Optional[List[str]], default=None
107-
The node labels used to select nodes for this algorithm run
107+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
108108
sudo : Optional[bool], default=None
109-
Override memory estimation limits
109+
Disable the memory guard.
110110
log_progress : Optional[bool], default=None
111-
Whether to log progress
111+
Display progress logging.
112112
username : Optional[str], default=None
113113
The username to attribute the procedure run to
114114
concurrency : Optional[Any], default=None
115-
The number of concurrent threads
115+
Number of threads to use for running the algorithm.
116116
job_id : Optional[Any], default=None
117-
An identifier for the job
117+
Identifier for the job.
118118
relationship_weight_property : Optional[str], default=None
119-
The property name that contains relationship weights
119+
Name of the property to be used as weights.
120120
121121
Returns
122122
-------
@@ -203,27 +203,27 @@ def write(
203203
G : GraphV2
204204
The graph to run the algorithm on
205205
write_property : str
206-
The property name to store the betweenness centrality score for each node
206+
Name of the node property to store the results in.
207207
sampling_size : Optional[int], default=None
208-
The number of nodes to use for sampling.
208+
Number of source nodes to consider for computing centrality scores.
209209
sampling_seed : Optional[int], default=None
210-
The seed value for sampling randomization
210+
Seed value for the random number generator that selects source nodes.
211211
relationship_types : Optional[List[str]], default=None
212-
The relationship types used to select relationships for this algorithm run
212+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
213213
node_labels : Optional[List[str]], default=None
214-
The node labels used to select nodes for this algorithm run
214+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
215215
sudo : Optional[bool], default=None
216-
Override memory estimation limits
216+
Disable the memory guard.
217217
log_progress : Optional[bool], default=None
218-
Whether to log progress
218+
Display progress logging.
219219
username : Optional[str], default=None
220220
The username to attribute the procedure run to
221221
concurrency : Optional[Any], default=None
222-
The number of concurrent threads
222+
Number of threads to use for running the algorithm.
223223
job_id : Optional[Any], default=None
224-
An identifier for the job
224+
Identifier for the job.
225225
relationship_weight_property : Optional[str], default=None
226-
The property name that contains relationship weights
226+
Name of the property to be used as weights.
227227
write_concurrency : Optional[Any], default=None
228228
The number of concurrent threads during the write phase
229229

graphdatascience/procedure_surface/api/centrality/celf_endpoints.py

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,27 @@ def mutate(
4242
seed_set_size : int
4343
The number of nodes to select as the seed set for influence maximization
4444
mutate_property : str
45-
The property name to store the influence spread value for each selected node
45+
Name of the node property to store the results in.
4646
propagation_probability : Optional[float], default=None
47-
The probability that influence spreads from one node to another.
47+
Probability of a node being activated by an active neighbour node.
4848
monte_carlo_simulations : Optional[int], default=None
49-
The number of Monte-Carlo simulations.
49+
Number of Monte-Carlo simulations.
5050
random_seed : Optional[Any], default=None
5151
Random seed for reproducible results.
5252
relationship_types : Optional[List[str]], default=None
53-
The relationship types used to select relationships for this algorithm run.
53+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
5454
node_labels : Optional[List[str]], default=None
55-
The node labels used to select nodes for this algorithm run.
55+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
5656
sudo : Optional[bool], default=None
57-
Override memory estimation limits. Use with caution as this can lead to
58-
memory issues if the estimation is significantly wrong.
57+
Disable the memory guard.
5958
log_progress : Optional[bool], default=None
60-
Whether to log progress of the algorithm execution
59+
Display progress logging.
6160
username : Optional[str], default=None
6261
The username to attribute the procedure run to
6362
concurrency : Optional[Any], default=None
64-
The number of concurrent threads used for the algorithm execution.
63+
Number of threads to use for running the algorithm.
6564
job_id : Optional[Any], default=None
66-
An identifier for the job that can be used for monitoring and cancellation
65+
Identifier for the job.
6766
6867
Returns
6968
-------
@@ -100,26 +99,25 @@ def stats(
10099
seed_set_size : int
101100
The number of nodes to select as the seed set for influence maximization
102101
propagation_probability : Optional[float], default=None
103-
The probability that influence spreads from one node to another.
102+
Probability of a node being activated by an active neighbour node.
104103
monte_carlo_simulations : Optional[int], default=None
105-
The number of Monte-Carlo simulations.
104+
Number of Monte-Carlo simulations.
106105
random_seed : Optional[Any], default=None
107106
Random seed for reproducible results.
108107
relationship_types : Optional[List[str]], default=None
109-
The relationship types used to select relationships for this algorithm run.
108+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
110109
node_labels : Optional[List[str]], default=None
111-
The node labels used to select nodes for this algorithm run.
110+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
112111
sudo : Optional[bool], default=None
113-
Override memory estimation limits. Use with caution as this can lead to
114-
memory issues if the estimation is significantly wrong.
112+
Disable the memory guard.
115113
log_progress : Optional[bool], default=None
116-
Whether to log progress of the algorithm execution
114+
Display progress logging.
117115
username : Optional[str], default=None
118116
The username to attribute the procedure run to
119117
concurrency : Optional[Any], default=None
120-
The number of concurrent threads used for the algorithm execution.
118+
Number of threads to use for running the algorithm.
121119
job_id : Optional[Any], default=None
122-
An identifier for the job that can be used for monitoring and cancellation
120+
Identifier for the job.
123121
124122
Returns
125123
-------
@@ -213,28 +211,27 @@ def write(
213211
seed_set_size : int
214212
The number of nodes to select as the seed set for influence maximization
215213
write_property : str
216-
The property name to store the influence spread value for each selected node in the database
214+
Name of the node property to store the results in.
217215
propagation_probability : Optional[float], default=None
218-
The probability that influence spreads from one node to another.
216+
Probability of a node being activated by an active neighbour node.
219217
monte_carlo_simulations : Optional[int], default=None
220-
The number of Monte-Carlo simulations.
218+
Number of Monte-Carlo simulations.
221219
random_seed : Optional[Any], default=None
222220
Random seed for reproducible results.
223221
relationship_types : Optional[List[str]], default=None
224-
The relationship types used to select relationships for this algorithm run.
222+
Filter the graph using the given relationship types. Relationships with any of the given types will be included.
225223
node_labels : Optional[List[str]], default=None
226-
The node labels used to select nodes for this algorithm run.
224+
Filter the graph using the given node labels. Nodes with any of the given labels will be included.
227225
sudo : Optional[bool], default=None
228-
Override memory estimation limits. Use with caution as this can lead to
229-
memory issues if the estimation is significantly wrong.
226+
Disable the memory guard.
230227
log_progress : Optional[bool], default=None
231-
Whether to log progress of the algorithm execution
228+
Display progress logging.
232229
username : Optional[str], default=None
233230
The username to attribute the procedure run to
234231
concurrency : Optional[Any], default=None
235-
The number of concurrent threads used for the algorithm execution.
232+
Number of threads to use for running the algorithm.
236233
job_id : Optional[Any], default=None
237-
An identifier for the job that can be used for monitoring and cancellation
234+
Identifier for the job.
238235
write_concurrency : Optional[Any], default=None
239236
The number of concurrent threads used during the write phase.
240237

0 commit comments

Comments
 (0)