Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit d954e18

Browse files
tomasonjojexp
authored andcommitted
Add pagerank references (#423)
1 parent 74d499a commit d954e18

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

algo/src/main/java/org/neo4j/graphalgo/ShortestPathProc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public Stream<ShortestPathDijkstra.Result> dijkstraStream(
8686

8787
@Procedure(value = "algo.shortestPath", mode = Mode.WRITE)
8888
@Description("CALL algo.shortestPath(startNode:Node, endNode:Node, weightProperty:String" +
89-
"{nodeQuery:'labelName', relationshipQuery:'relationshipName', dirction:'BOTH', defaultValue:1.0, write:'true', writeProperty:'sssp'}) " +
89+
"{nodeQuery:'labelName', relationshipQuery:'relationshipName', direction:'BOTH', defaultValue:1.0, write:'true', writeProperty:'sssp'}) " +
9090
"YIELD nodeId, cost, loadMillis, evalMillis, writeMillis - yields nodeCount, totalCost, loadMillis, evalMillis, writeMillis")
9191
public Stream<DijkstraResult> dijkstra(
9292
@Name("startNode") Node startNode,

doc/pagerank.adoc

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,18 @@ It's even used for systems analysis of road networks, as well as biology, chemis
3333

3434
In neuroscience, the PageRank of a neuron in a neural network has been found to correlate with its relative firing rate.
3535

36-
Personalized PageRank is used by Twitter to present users with other accounts they may wish to follow.
36+
Personalized PageRank is used by Twitter to present users with other accounts they may wish to follow https://web.stanford.edu/class/msande233/handouts/lecture8.pdf[[4\]].
3737

3838

39-
PageRank has been used to rank spaces or streets to predict how many people (pedestrians or vehicles) come to the individual spaces or streets. In lexical semantics it has been used to perform Word Sense Disambiguation,Semantic similarity, and also to automatically rank WordNet synsets according to how strongly they possess a given semantic property, such as positivity or negativity.
39+
PageRank has been used to rank spaces or streets to predict how many people (pedestrians or vehicles) come to the individual spaces or streets. In lexical semantics it has been used to perform Word Sense Disambiguation,Semantic similarity, and also to automatically rank WordNet synsets according to how strongly they possess a given semantic property, such as positivity or negativity http://nmis.isti.cnr.it/sebastiani/Publications/ACL07.pdf[[2\]].
4040

41-
In any ecosystem, a modified version of PageRank may be used to determine species that are essential to the continuing health of the environment.
41+
In any ecosystem, a modified version of PageRank may be used to determine species that are essential to the continuing health of the environment http://news.bbc.co.uk/2/hi/8238462.stm[[3\]].
4242

43-
For the analysis of protein networks in biology PageRank is also a useful tool.
43+
For the analysis of protein networks in biology PageRank is also a useful tool https://bmcbioinformatics.biomedcentral.com/track/pdf/10.1186/1471-2105-15-204?site=bmcbioinformatics.biomedcentral.com[[6\]].
4444

45-
Pagerank has recently been used to quantify the scientific impact of researchers. The underlying citation and collaboration networks are used in conjunction with pagerank algorithm in order to come up with a ranking system for individual publications which propagates to individual authors. The new index known as pagerank-index (Pi) is demonstrated to be fairer compared to h-index in the context of many drawbacks exhibited by h-index.
45+
Pagerank has been used to quantify the scientific impact of researchers http://ilpubs.stanford.edu:8090/422/1/1999-66.pdf[[5\]].
46+
The underlying citation and collaboration networks are used in conjunction with pagerank algorithm in order to come up with a ranking system for individual publications which propagates to individual authors .
47+
The new index known as pagerank-index (Pi) is demonstrated to be fairer compared to h-index in the context of many drawbacks exhibited by h-index.
4648

4749
== Constraints / when not to use it
4850

@@ -206,14 +208,22 @@ We support the following versions of the pageRank algorithm:
206208

207209
* http://infolab.stanford.edu/~ullman/mmds/book.pdf
208210

209-
* http://ilpubs.stanford.edu:8090/422/1/1999-66.pdf
210-
211211
* http://www.cs.princeton.edu/~chazelle/courses/BIB/pagerank.htm
212212

213213
* https://anthonybonato.com/2016/04/13/the-mathematics-of-game-of-thrones/
214214

215215
* [1] http://research.ijcaonline.org/volume110/number12/pxc3901035.pdf
216216

217+
* [2] http://nmis.isti.cnr.it/sebastiani/Publications/ACL07.pdf
218+
219+
* [3] http://news.bbc.co.uk/2/hi/8238462.stm
220+
221+
* [4] https://web.stanford.edu/class/msande233/handouts/lecture8.pdf
222+
223+
* [5] http://ilpubs.stanford.edu:8090/422/1/1999-66.pdf
224+
225+
* [6] https://bmcbioinformatics.biomedcentral.com/track/pdf/10.1186/1471-2105-15-204?site=bmcbioinformatics.biomedcentral.com
226+
217227
ifdef::implementation[]
218228
// tag::implementation[]
219229

doc/single-shortest-path.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ include::scripts/single-shortest-path.cypher[tag=all-pairs-sample-graph]
9292
[source,cypher]
9393
----
9494
CALL algo.shortestPath(startNode:Node, endNode:Node, weightProperty:String
95-
{nodeQuery:'labelName', relationshipQuery:'relationshipName', defaultValue:1.0,write:'true',writeProperty:'sssp'})
95+
{nodeQuery:'labelName', relationshipQuery:'relationshipName', defaultValue:1.0,write:'true',writeProperty:'sssp',direction:'OUTGOING'})
9696
YIELD nodeCount, totalCost, loadMillis, evalMillis, writeMillis
9797
9898
----
@@ -109,6 +109,7 @@ YIELD nodeCount, totalCost, loadMillis, evalMillis, writeMillis
109109
| writeProperty | string | 'sssp' | yes | property name written back to the node sequence of the node in the path
110110
| nodeQuery | string | null | yes | label to load from the graph, if null load all nodes
111111
| relationshipQuery | string | null | yes | relationship-type to load from the graph, if null load all nodes
112+
| direction | string | outgoing | yes | relationship direction to load from the graph, if 'both' treats the relationships as undirected
112113
|===
113114

114115
.Results
@@ -127,7 +128,7 @@ YIELD nodeCount, totalCost, loadMillis, evalMillis, writeMillis
127128
[source,cypher]
128129
----
129130
CALL algo.shortestPath.stream(startNode:Node, endNode:Node, weightProperty:String
130-
{nodeQuery:'labelName', relationshipQuery:'relationshipName', defaultValue:1.0})
131+
{nodeQuery:'labelName', relationshipQuery:'relationshipName', defaultValue:1.0, direction:'OUTGOING'})
131132
YIELD nodeId, cost
132133
----
133134

@@ -141,6 +142,7 @@ CALL algo.shortestPath.stream(startNode:Node, endNode:Node, weightProperty:Strin
141142
| nodeQuery | string | null | yes | label to load from the graph, if null load all nodes
142143
| relationshipQuery | string | null | yes | relationship-type to load from the graph, if null load all nodes
143144
| defaultValue | float | null | yes | default value of the weight in case it is missing or invalid
145+
| direction | string | outgoing | yes | relationship direction to load from the graph, if 'both' treats the relationships as undirected
144146
|===
145147

146148
.Results

0 commit comments

Comments
 (0)