diff options
Diffstat (limited to 'examples/src/main/python')
-rwxr-xr-x | examples/src/main/python/pagerank.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/src/main/python/pagerank.py b/examples/src/main/python/pagerank.py index b539c4128c..a5f25d78c1 100755 --- a/examples/src/main/python/pagerank.py +++ b/examples/src/main/python/pagerank.py @@ -15,6 +15,11 @@ # limitations under the License. # +""" +This is an example implementation of PageRank. For more conventional use, +Please refer to PageRank implementation provided by graphx +""" + import re import sys from operator import add @@ -40,6 +45,9 @@ if __name__ == "__main__": print >> sys.stderr, "Usage: pagerank <file> <iterations>" exit(-1) + print >> sys.stderr, """WARN: This is a naive implementation of PageRank and is + given as an example! Please refer to PageRank implementation provided by graphx""" + # Initialize the spark context. sc = SparkContext(appName="PythonPageRank") |