Skip to content

mefagan/pagerank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaryEileen Fagan Programming Assigment 2 Program can be run by compiling and running the PageRankAlgorithm.java class with 2 arguments. The first argument is the path to the directory and second is the F value. The program assumes that the directory is saved in the specified folder, but does not assume that the html files are saved. The links are treated as URL links. The program outputs the names of the files followed by their page ranking, listed in descending order of page rank. For example, I can compile and run the program using the following two command line arguments. /Users/maryeileenfagan/Documents/Eclipse/pagerank/pagerankinput/example.htm 0.7

This gives the following console output when tested with the example input.

Arctic 0.1711953735030407 Atlantic 0.16498011846005722 Pinniped 0.16382497064932364 Pacific 0.15972871428350144 Seal 0.11778499583653557 Bear 0.08622025600363623 PolarBear 0.0719100011791452 Walrus 0.06435557008475994

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages