You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Abstract base class defining the API for the ArticleRank algorithm.
17
-
"""
18
-
19
14
@abstractmethod
20
15
defmutate(
21
16
self,
@@ -36,40 +31,44 @@ def mutate(
36
31
source_nodes: Optional[Any] =None,
37
32
) ->ArticleRankMutateResult:
38
33
"""
39
-
Executes the ArticleRank algorithm and writes the results back to the graph as a node property.
34
+
Runs the Article Rank algorithm and stores the results in the graph catalog as a new node property.
35
+
36
+
ArticleRank is a variant of the Page Rank algorithm, which measures the transitive influence of nodes.
37
+
Page Rank follows the assumption that relationships originating from low-degree nodes have a higher influence than relationships from high-degree nodes.
38
+
Article Rank lowers the influence of low-degree nodes by lowering the scores being sent to their neighbors in each iteration.
40
39
41
40
Parameters
42
41
----------
43
42
G : GraphV2
44
43
The graph to run the algorithm on
45
44
mutate_property : str
46
-
The property name to store the ArticleRank score for each node
45
+
Name of the node property to store the results in.
47
46
damping_factor : Optional[float], default=None
48
-
The damping factor controls the probability of a random jump to a random node
47
+
Probability of a jump to a random node.
49
48
tolerance : Optional[float], default=None
50
-
Minimum change in scores between iterations
49
+
Minimum change in scores between iterations.
51
50
max_iterations : Optional[int], default=None
52
-
The maximum number of iterations to run
51
+
Maximum number of iterations to run.
53
52
scaler : Optional[Any], default=None
54
-
Configuration for scaling the scores
53
+
Name of the scaler applied on the resulting scores.
List of node ids to use as starting points. Use a list of list pairs to associate each node with a bias > 0.
73
72
74
73
Returns
75
74
-------
@@ -96,38 +95,42 @@ def stats(
96
95
source_nodes: Optional[Any] =None,
97
96
) ->ArticleRankStatsResult:
98
97
"""
99
-
Executes the ArticleRank algorithm and returns result statistics without writing the result to Neo4j.
98
+
Runs the Article Rank algorithm and returns result statistics without storing the results.
99
+
100
+
ArticleRank is a variant of the Page Rank algorithm, which measures the transitive influence of nodes.
101
+
Page Rank follows the assumption that relationships originating from low-degree nodes have a higher influence than relationships from high-degree nodes.
102
+
Article Rank lowers the influence of low-degree nodes by lowering the scores being sent to their neighbors in each iteration.
100
103
101
104
Parameters
102
105
----------
103
106
G : GraphV2
104
107
The graph to run the algorithm on
105
108
damping_factor : Optional[float], default=None
106
-
The damping factor controls the probability of a random jump to a random node
109
+
Probability of a jump to a random node.
107
110
tolerance : Optional[float], default=None
108
-
Minimum change in scores between iterations
111
+
Minimum change in scores between iterations.
109
112
max_iterations : Optional[int], default=None
110
-
The maximum number of iterations to run
113
+
Maximum number of iterations to run.
111
114
scaler : Optional[Any], default=None
112
-
Configuration for scaling the scores
115
+
Name of the scaler applied on the resulting scores.
List of node ids to use as starting points. Use a list of list pairs to associate each node with a bias > 0.
131
134
132
135
Returns
133
136
-------
@@ -214,7 +217,11 @@ def write(
214
217
write_concurrency: Optional[int] =None,
215
218
) ->ArticleRankWriteResult:
216
219
"""
217
-
Executes the ArticleRank algorithm and writes the results to Neo4j.
220
+
Runs the Article Rank algorithm and stores the result in the Neo4j database as a new node property.
221
+
222
+
ArticleRank is a variant of the Page Rank algorithm, which measures the transitive influence of nodes.
223
+
Page Rank follows the assumption that relationships originating from low-degree nodes have a higher influence than relationships from high-degree nodes.
224
+
Article Rank lowers the influence of low-degree nodes by lowering the scores being sent to their neighbors in each iteration.
218
225
219
226
Parameters
220
227
----------
@@ -223,31 +230,31 @@ def write(
223
230
write_property : str
224
231
The property name to write the ArticleRank score for each node
225
232
damping_factor : Optional[float], default=None
226
-
The damping factor controls the probability of a random jump to a random node
233
+
Probability of a jump to a random node.
227
234
tolerance : Optional[float], default=None
228
-
Minimum change in scores between iterations
235
+
Minimum change in scores between iterations.
229
236
max_iterations : Optional[int], default=None
230
-
The maximum number of iterations to run
237
+
Maximum number of iterations to run.
231
238
scaler : Optional[Any], default=None
232
-
Configuration for scaling the scores
239
+
Name of the scaler applied on the resulting scores.
0 commit comments