Skip to content

Commit f71ac11

Browse files
FlorentinDDarthMax
andcommitted
Fix ref docs
username desc and shorter wording Co-authored-by: Max Kießling <max.kiessling@neo4j.com>
1 parent ab9a4a9 commit f71ac11

File tree

2 files changed

+14
-29
lines changed

2 files changed

+14
-29
lines changed

graphdatascience/procedure_surface/api/celf_endpoints.py

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ class CelfEndpoints(ABC):
1515
Abstract base class defining the API for the Cost Effective Lazy Forward (CELF) algorithm.
1616
1717
The CELF algorithm aims to find k nodes that maximize the expected spread of influence
18-
in the network. It's an optimization of the greedy algorithm for influence maximization
19-
that uses lazy evaluation to improve performance while maintaining the same approximation
20-
guarantees.
21-
22-
The algorithm works by iteratively selecting nodes that provide the maximum marginal
23-
influence gain, using a lazy evaluation strategy to avoid redundant computations.
18+
in the network.
2419
"""
2520

2621
@abstractmethod
@@ -53,10 +48,8 @@ def mutate(
5348
The property name to store the influence spread value for each selected node
5449
propagation_probability : Optional[float], default=None
5550
The probability that influence spreads from one node to another.
56-
If not specified, uses the default value from the algorithm configuration.
5751
monte_carlo_simulations : Optional[int], default=None
58-
The number of Monte Carlo simulations used to estimate influence spread.
59-
Higher values provide more accurate estimates but increase computation time.
52+
The number of Monte-Carlo simulations.
6053
random_seed : Optional[Any], default=None
6154
Random seed for reproducible results. If not specified, uses a random seed.
6255
relationship_types : Optional[List[str]], default=None
@@ -71,7 +64,7 @@ def mutate(
7164
log_progress : Optional[bool], default=None
7265
Whether to log progress of the algorithm execution
7366
username : Optional[str], default=None
74-
The username to attribute the procedure run to for auditing purposes
67+
The username to attribute the procedure run to
7568
concurrency : Optional[Any], default=None
7669
The number of concurrent threads used for the algorithm execution.
7770
If not specified, uses the default concurrency level.
@@ -112,10 +105,8 @@ def stats(
112105
The number of nodes to select as the seed set for influence maximization
113106
propagation_probability : Optional[float], default=None
114107
The probability that influence spreads from one node to another.
115-
If not specified, uses the default value from the algorithm configuration.
116108
monte_carlo_simulations : Optional[int], default=None
117-
The number of Monte Carlo simulations used to estimate influence spread.
118-
Higher values provide more accurate estimates but increase computation time.
109+
The number of Monte-Carlo simulations.
119110
random_seed : Optional[Any], default=None
120111
Random seed for reproducible results. If not specified, uses a random seed.
121112
relationship_types : Optional[List[str]], default=None
@@ -130,7 +121,7 @@ def stats(
130121
log_progress : Optional[bool], default=None
131122
Whether to log progress of the algorithm execution
132123
username : Optional[str], default=None
133-
The username to attribute the procedure run to for auditing purposes
124+
The username to attribute the procedure run to
134125
concurrency : Optional[Any], default=None
135126
The number of concurrent threads used for the algorithm execution.
136127
If not specified, uses the default concurrency level.
@@ -171,10 +162,8 @@ def stream(
171162
The number of nodes to select as the seed set for influence maximization
172163
propagation_probability : Optional[float], default=None
173164
The probability that influence spreads from one node to another.
174-
If not specified, uses the default value from the algorithm configuration.
175165
monte_carlo_simulations : Optional[int], default=None
176-
The number of Monte Carlo simulations used to estimate influence spread.
177-
Higher values provide more accurate estimates but increase computation time.
166+
The number of Monte-Carlo simulations.
178167
random_seed : Optional[Any], default=None
179168
Random seed for reproducible results. If not specified, uses a random seed.
180169
relationship_types : Optional[List[str]], default=None
@@ -189,7 +178,7 @@ def stream(
189178
log_progress : Optional[bool], default=None
190179
Whether to log progress of the algorithm execution
191180
username : Optional[str], default=None
192-
The username to attribute the procedure run to for auditing purposes
181+
The username to attribute the procedure run to
193182
concurrency : Optional[Any], default=None
194183
The number of concurrent threads used for the algorithm execution.
195184
If not specified, uses the default concurrency level.
@@ -235,10 +224,8 @@ def write(
235224
The property name to store the influence spread value for each selected node in the database
236225
propagation_probability : Optional[float], default=None
237226
The probability that influence spreads from one node to another.
238-
If not specified, uses the default value from the algorithm configuration.
239227
monte_carlo_simulations : Optional[int], default=None
240-
The number of Monte Carlo simulations used to estimate influence spread.
241-
Higher values provide more accurate estimates but increase computation time.
228+
The number of Monte-Carlo simulations.
242229
random_seed : Optional[Any], default=None
243230
Random seed for reproducible results. If not specified, uses a random seed.
244231
relationship_types : Optional[List[str]], default=None
@@ -253,7 +240,7 @@ def write(
253240
log_progress : Optional[bool], default=None
254241
Whether to log progress of the algorithm execution
255242
username : Optional[str], default=None
256-
The username to attribute the procedure run to for auditing purposes
243+
The username to attribute the procedure run to
257244
concurrency : Optional[Any], default=None
258245
The number of concurrent threads used for the algorithm execution.
259246
If not specified, uses the default concurrency level.
@@ -297,10 +284,8 @@ def estimate(
297284
The number of nodes to select as the seed set for influence maximization.
298285
propagation_probability : Optional[float], default=None
299286
The probability that influence spreads from one node to another.
300-
If not specified, uses the default value from the algorithm configuration.
301287
monte_carlo_simulations : Optional[int], default=None
302-
The number of Monte Carlo simulations used to estimate influence spread.
303-
Higher values provide more accurate estimates but increase computation time.
288+
The number of Monte-Carlo simulations.
304289
random_seed : Optional[Any], default=None
305290
Random seed for reproducible results. If not specified, uses a random seed.
306291
relationship_types : Optional[List[str]], default=None

graphdatascience/procedure_surface/api/degree_endpoints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def mutate(
6060
log_progress : Optional[bool], default=None
6161
Whether to log progress of the algorithm execution
6262
username : Optional[str], default=None
63-
The username to attribute the procedure run to for auditing purposes
63+
The username to attribute the procedure run to
6464
concurrency : Optional[Any], default=None
6565
The number of concurrent threads used for the algorithm execution.
6666
If not specified, uses the default concurrency level.
@@ -116,7 +116,7 @@ def stats(
116116
log_progress : Optional[bool], default=None
117117
Whether to log progress of the algorithm execution
118118
username : Optional[str], default=None
119-
The username to attribute the procedure run to for auditing purposes
119+
The username to attribute the procedure run to
120120
concurrency : Optional[Any], default=None
121121
The number of concurrent threads used for the algorithm execution.
122122
If not specified, uses the default concurrency level.
@@ -172,7 +172,7 @@ def stream(
172172
log_progress : Optional[bool], default=None
173173
Whether to log progress of the algorithm execution
174174
username : Optional[str], default=None
175-
The username to attribute the procedure run to for auditing purposes
175+
The username to attribute the procedure run to
176176
concurrency : Optional[Any], default=None
177177
The number of concurrent threads used for the algorithm execution.
178178
If not specified, uses the default concurrency level.
@@ -233,7 +233,7 @@ def write(
233233
log_progress : Optional[bool], default=None
234234
Whether to log progress of the algorithm execution
235235
username : Optional[str], default=None
236-
The username to attribute the procedure run to for auditing purposes
236+
The username to attribute the procedure run to
237237
concurrency : Optional[Any], default=None
238238
The number of concurrent threads used for the algorithm execution.
239239
If not specified, uses the default concurrency level.

0 commit comments

Comments
 (0)