Code Monkey home page Code Monkey logo

cc-webgraph's Introduction

cc-webgraph

Setup

First, download the vertice and edge lists. For more up-to-date webgraphs see https://commoncrawl.org/web-graphs.

mkdir ranking/data
cd ranking/data
wget https://data.commoncrawl.org/projects/hyperlinkgraph/cc-main-2023-may-sep-nov/domain/cc-main-2023-may-sep-nov-domain-vertices.txt.gz
wget https://data.commoncrawl.org/projects/hyperlinkgraph/cc-main-2023-may-sep-nov/domain/cc-main-2023-may-sep-nov-domain-edges.txt.gz
cp cc-main-2023-may-sep-nov-domain-vertices.txt.gz cc-main-2023-may-sep-nov-domain-vertices.txt.gz.2
gzip -d cc-main-2023-may-sep-nov-domain-vertices.txt.gz.2
cp cc-main-2023-may-sep-nov-domain-edges.txt.gz cc-main-2023-may-sep-nov-domain-edges.txt.gz.2
gzip -d cc-main-2023-may-sep-nov-domain-edges.txt.gz.2

Now, compile the webgraph tools and run scripts once to generate the required BVGraph objects:

cd ../../
mkdir output
mvn package
./src/script/webgraph_ranking/process_webgraph.sh preference_up ./ranking/data/cc-main-2023-may-sep-nov-domain-vertices-copy.txt.gz ./ranking/data/cc-main-2023-may-sep-nov-domain-edges-copy.txt.gz ./ranking/output/

Run PPR experiments:

./ranking/prepare_ppr_domain_list.sh
./ranking/run_link_spam_detection.sh
./ranking/run_all_exps.sh

Run Multi-Category Link Scheme experiment:

cd ranking/casinos
./run_multi_category_ppr_exp.sh

Run Edge removal experiments:

./ranking/run_edge_removal.sh

Generate pre-post intervention plot and multi-category link scheme hexplot:

cd ranking
Rscript intervention_graphs.R

Credits

Thanks to the authors of the WebGraph framework used to process the graphs and compute page rank and harmonic centrality. See also Sebastiano Vigna's projects webgraph and webgraph-big.

cc-webgraph's People

Contributors

sebastian-nagel avatar petercarragher avatar jnioche avatar thunderpoot 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.