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
{{ message }}
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: doc/pagerank.adoc
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,8 @@ Dead-ends problem occurs, when pages have no out links.
59
59
Sometimes a page contains a link of another page which has no out links.
60
60
These types of link are known as dangling links.[1]
61
61
62
+
Check reference http://www.cs.princeton.edu/~chazelle/courses/BIB/pagerank.htm[[7\]] for more.
63
+
62
64
63
65
== Algorithm explanation on simple sample graph
64
66
@@ -103,11 +105,23 @@ As we expected, we see that Home page has the highest pageRank, because it has i
103
105
104
106
== Example Usage
105
107
106
-
.minimal
108
+
In short PageRank is a “vote”, by all the other nodes in the graph, about how important a node is. A relationship to a node counts as a vote of support. If there’s no link there’s no support (but it’s an abstention from voting rather than a vote against the node).[7]
109
+
110
+
We have to add here that the weight of the support from one node to another is related to how important the "voter" node is.
111
+
112
+
We will run PageRank on Yelp's social network to find potential influencers.
113
+
If you will check closely you can see that we saved the social network as an undirected graph.
114
+
For now there is no option to load the the relationship as undirected, but we can use cypher loading to help us solve this.
115
+
Undirected graph can be represented as https://en.wikipedia.org/wiki/Bidirected_graph[Bidirected graph], that is a directed graph in which the reverse of every relationship is also a relationship.
116
+
117
+
We do not have to save this reversed relationship, we can project it using *cypher loading*.
118
+
We load all relationships and then use `UNION` to also load all relationships with reversed directions.
119
+
This is applicable to all other algorithms, that use *cypher loading*.
0 commit comments