@@ -18,13 +18,13 @@ def mutate(
1818 G : GraphV2 ,
1919 mutate_property : str ,
2020 * ,
21- damping_factor : float | None = None ,
22- tolerance : float | None = None ,
23- max_iterations : int | None = None ,
24- scaler : Any | None = None ,
21+ damping_factor : float = 0.85 ,
22+ tolerance : float = 1.0e-7 ,
23+ max_iterations : int = 20 ,
24+ scaler : Any = "NONE" ,
2525 relationship_types : list [str ] = ALL_TYPES ,
2626 node_labels : list [str ] = ALL_LABELS ,
27- sudo : bool | None = None ,
27+ sudo : bool = False ,
2828 log_progress : bool = True ,
2929 username : str | None = None ,
3030 concurrency : Any | None = None ,
@@ -45,19 +45,19 @@ def mutate(
4545 The graph to run the algorithm on
4646 mutate_property : str
4747 Name of the node property to store the results in.
48- damping_factor : float | None, default=None
48+ damping_factor : float
4949 Probability of a jump to a random node.
50- tolerance : float | None, default=None
50+ tolerance : float
5151 Minimum change in scores between iterations.
52- max_iterations : int | None, default=None
52+ max_iterations : int
5353 Maximum number of iterations to run.
54- scaler : Any | None, default=None
54+ scaler : Any
5555 Name of the scaler applied on the resulting scores.
56- relationship_types : list[str] | None, default=None
56+ relationship_types : list[str]
5757 Filter the graph using the given relationship types. Relationships with any of the given types will be included.
58- node_labels : list[str] | None, default=None
58+ node_labels : list[str]
5959 Filter the graph using the given node labels. Nodes with any of the given labels will be included.
60- sudo : bool | None, default=None
60+ sudo : bool
6161 Disable the memory guard.
6262 log_progress : bool | None, default=None
6363 Display progress logging.
@@ -83,13 +83,13 @@ def stats(
8383 self ,
8484 G : GraphV2 ,
8585 * ,
86- damping_factor : float | None = None ,
87- tolerance : float | None = None ,
88- max_iterations : int | None = None ,
89- scaler : Any | None = None ,
86+ damping_factor : float = 0.85 ,
87+ tolerance : float = 1.0e-7 ,
88+ max_iterations : int = 20 ,
89+ scaler : Any = "NONE" ,
9090 relationship_types : list [str ] = ALL_TYPES ,
9191 node_labels : list [str ] = ALL_LABELS ,
92- sudo : bool | None = None ,
92+ sudo : bool = False ,
9393 log_progress : bool = True ,
9494 username : str | None = None ,
9595 concurrency : Any | None = None ,
@@ -108,19 +108,19 @@ def stats(
108108 ----------
109109 G : GraphV2
110110 The graph to run the algorithm on
111- damping_factor : float | None, default=None
111+ damping_factor : float
112112 Probability of a jump to a random node.
113- tolerance : float | None, default=None
113+ tolerance : float
114114 Minimum change in scores between iterations.
115- max_iterations : int | None, default=None
115+ max_iterations : int
116116 Maximum number of iterations to run.
117- scaler : Any | None, default=None
117+ scaler : Any
118118 Name of the scaler applied on the resulting scores.
119- relationship_types : list[str] | None, default=None
119+ relationship_types : list[str]
120120 Filter the graph using the given relationship types. Relationships with any of the given types will be included.
121- node_labels : list[str] | None, default=None
121+ node_labels : list[str]
122122 Filter the graph using the given node labels. Nodes with any of the given labels will be included.
123- sudo : bool | None, default=None
123+ sudo : bool
124124 Disable the memory guard.
125125 log_progress : bool | None, default=None
126126 Display progress logging.
@@ -146,13 +146,13 @@ def stream(
146146 self ,
147147 G : GraphV2 ,
148148 * ,
149- damping_factor : float | None = None ,
150- tolerance : float | None = None ,
151- max_iterations : int | None = None ,
152- scaler : Any | None = None ,
149+ damping_factor : float = 0.85 ,
150+ tolerance : float = 1.0e-7 ,
151+ max_iterations : int = 20 ,
152+ scaler : Any = "NONE" ,
153153 relationship_types : list [str ] = ALL_TYPES ,
154154 node_labels : list [str ] = ALL_LABELS ,
155- sudo : bool | None = None ,
155+ sudo : bool = False ,
156156 log_progress : bool = True ,
157157 username : str | None = None ,
158158 concurrency : Any | None = None ,
@@ -167,21 +167,21 @@ def stream(
167167 ----------
168168 G : GraphV2
169169 The graph to run the algorithm on
170- damping_factor : float | None, default=None
170+ damping_factor : float
171171 The damping factor controls the probability of a random jump to a random node
172- tolerance : float | None, default=None
172+ tolerance : float
173173 Minimum change in scores between iterations
174- max_iterations : int | None, default=None
174+ max_iterations : int
175175 The maximum number of iterations to run
176- scaler : Any | None, default=None
176+ scaler : Any
177177 Configuration for scaling the scores
178- relationship_types : list[str] | None, default=None
178+ relationship_types : list[str]
179179 The relationships types used to select relationships for this algorithm run
180- node_labels : list[str] | None, default=None
180+ node_labels : list[str]
181181 The node labels used to select nodes for this algorithm run
182- sudo : bool | None, default=None
182+ sudo : bool
183183 Override memory estimation limits
184- log_progress : bool | None, default=None
184+ log_progress : bool
185185 Whether to log progress
186186 username : str | None, default=None
187187 The username to attribute the procedure run to
@@ -206,13 +206,13 @@ def write(
206206 G : GraphV2 ,
207207 write_property : str ,
208208 * ,
209- damping_factor : float | None = None ,
210- tolerance : float | None = None ,
211- max_iterations : int | None = None ,
212- scaler : Any | None = None ,
209+ damping_factor : float = 0.85 ,
210+ tolerance : float = 1.0e-7 ,
211+ max_iterations : int = 20 ,
212+ scaler : Any = "NONE" ,
213213 relationship_types : list [str ] = ALL_TYPES ,
214214 node_labels : list [str ] = ALL_LABELS ,
215- sudo : bool | None = None ,
215+ sudo : bool = False ,
216216 log_progress : bool = True ,
217217 username : str | None = None ,
218218 concurrency : Any | None = None ,
@@ -234,19 +234,19 @@ def write(
234234 The graph to run the algorithm on
235235 write_property : str
236236 The property name to write the ArticleRank score for each node
237- damping_factor : float | None, default=None
237+ damping_factor : float
238238 Probability of a jump to a random node.
239- tolerance : float | None, default=None
239+ tolerance : float
240240 Minimum change in scores between iterations.
241- max_iterations : int | None, default=None
241+ max_iterations : int
242242 Maximum number of iterations to run.
243- scaler : Any | None, default=None
243+ scaler : Any
244244 Name of the scaler applied on the resulting scores.
245- relationship_types : list[str] | None, default=None
245+ relationship_types : list[str]
246246 Filter the graph using the given relationship types. Relationships with any of the given types will be included.
247- node_labels : list[str] | None, default=None
247+ node_labels : list[str]
248248 Filter the graph using the given node labels. Nodes with any of the given labels will be included.
249- sudo : bool | None, default=None
249+ sudo : bool
250250 Disable the memory guard.
251251 log_progress : bool | None, default=None
252252 Display progress logging.
@@ -274,10 +274,10 @@ def estimate(
274274 self ,
275275 G : GraphV2 | dict [str , Any ],
276276 * ,
277- damping_factor : float | None = None ,
278- tolerance : float | None = None ,
279- max_iterations : int | None = None ,
280- scaler : Any | None = None ,
277+ damping_factor : float = 0.85 ,
278+ tolerance : float = 1.0e-7 ,
279+ max_iterations : int = 20 ,
280+ scaler : Any = "NONE" ,
281281 relationship_types : list [str ] = ALL_TYPES ,
282282 node_labels : list [str ] = ALL_LABELS ,
283283 concurrency : Any | None = None ,
@@ -291,17 +291,17 @@ def estimate(
291291 ----------
292292 G : GraphV2 | dict[str, Any]
293293 The graph to run the algorithm on or a dictionary representing the graph.
294- damping_factor : float | None, default=None
294+ damping_factor : float
295295 The damping factor controls the probability of a random jump to a random node
296- tolerance : float | None, default=None
296+ tolerance : float
297297 Minimum change in scores between iterations
298- max_iterations : int | None, default=None
298+ max_iterations : int
299299 The maximum number of iterations to run
300- scaler : Any | None, default=None
300+ scaler : Any
301301 Configuration for scaling the scores
302- relationship_types : list[str] | None, default=None
302+ relationship_types : list[str]
303303 The relationships types used to select relationships for this algorithm run
304- node_labels : list[str] | None, default=None
304+ node_labels : list[str]
305305 The node labels used to select nodes for this algorithm run
306306 concurrency : Any | None, default=None
307307 The number of concurrent threads
0 commit comments