GithubHelp home page GithubHelp logo

wzhut / cliquecounting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sjain12/cliquecounting

0.0 2.0 0.0 24.17 MB

Code for the algorithms and experiments in "A Fast and Provable Method for Estimating Clique Counts Using Turán's Theorem" by S. Jain and C. Seshadhri

C++ 75.47% Makefile 1.45% Python 23.08%

cliquecounting's Introduction

CliqueCounting

Code for the algorithms and experiments in "A Fast and Provable Method for Estimating Clique Counts Using Turán's Theorem" by S. Jain and C. Seshadhri

Steps to run the code:

  1. Store the graph to be analyzed as a list of edges in a .txt file in the graphs folder. cd into the python folder and run:

python sanitize.py ../graphs amazon0601.txt

This will create a file 'amazon0601.edges' in the graphs folder.

  1. To run the TuránShadow algorithm, run:

./test_cliques_turan_shadow -i amazon0601.edges -m 5 -M 5 -r 10 -n 50000

This will save the tree stats in '/amazon0601_5_50000_params' csv file in results/cliques/ and the estimates of the 10 runs in 'amazon0601_5_50000_10_data'

  1. To run the Edge Sampling algorithm, run:

./test_cliques_edge_sampling -i amazon0601.edges -m 5 -M 5 -r 10 -p 0.75

This will save the estimates from 10 runs of the algorithm in amazon0601_5_0.75_10_es in results/cliques/

  1. To run the GRAFT algorithm, run:

./test_cliques_graft -i amazon0601.edges -m 5 -M 5 -r 10 -n 100000

This will save the estimates from 10 runs of the algorithm in amazon0601_5_100000_10_graft in results/cliques/

  1. To run the Color Coding algorithm, run:

./test_cliques_color_coding -i amazon0601.edges -m 5 -M 5 -r 10

This will save the estimates from 10 runs of the algorithm in amazon0601_5_10_cc in results/cliques/

  1. To run the brute force clique counting algorithm, run:

./test_cliques_brute_force -i amazon0601.edges -m 5 -M 5 -r 10

This will save the estimates from 10 runs of the algorithm in amazon0601_5_10_bf in results/cliques/

For questions, contact Shweta Jain at [email protected].

cliquecounting's People

Contributors

sjain12 avatar

Watchers

James Cloos avatar Zheng Wang 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.