Git Product home page Git Product logo

pagerank-hits-simrank's Introduction

๐ŸŽ Python implementation of famous link analysis algorithms.

I have written three articles to explain the concept and implementation of these three algorithms. Feel free to click on the link!

๐Ÿ’ป Getting Started

Get a copy of this repo using git clone

git clone https://github.com/chonyy/PageRank-HITS-SimRank.git

Run the program with dataset provided and default values for damping_factor = 0.15, decay_factor = 0.9 and iteration = 100

python main.py -f 'dataset/graph_1.txt'

Run program with dataset and cusotm parameters

python main.py --input_file 'dataset/graph_1.txt' --damping_factor 0.15 --decay_factor 0.9 --iteration 500

Result

Output on console

The order of the result follows the order of the node value. For example, 1, 2, 5, 7.

Output to files in result folder

A new folder with the name same with the graph will be created in the result directory. Four txt files will be created to store the value printed on the console.

  • graph_HITS_authority.txt
  • graph_HITS_hub.txt
  • graph_PageRank.txt
  • graph_SimRank.txt

Analysis

pagerank-hits-simrank's People

Contributors

chonyy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.