Git Product home page Git Product logo

undirected_graphs_triangle_counter's Introduction

Sequential and Parallel Triangle Counting Algorithm on Undirected Graphs

Comparison between Sequential and Parallel version of the Graph Triangle Counter problem.

Startup

In order to run the benchmark you have to run these command in your console:

sudo apt update
sudo apt install build-essential
sudo apt-get install libboost-all-dev

After that, to compile the project, you have to jump into the /app/src folder and type the following line in your console:

g++ -std=c++2a -fopenmp -o ../bin/app Main.cpp

For compier optimization instead type:

g++ -std=c++2a -fopenmp -O3 -o ../bin/app Main.cpp

The .exe file will be inserted into the /app/bin directory.

Usage

Start the application by typing ./app. Next you have only to specify:

  • If you want to override the existing random generated graph and creatig other one: 0 or 1

During the execution of the benchmark the application will go through these steps for both the Stanford graphs and the radom generated graphs:

  1. Read the .csv file and create the respecitve edegs list
  2. Create the adjacency list from the edges list
  3. Compute the number of triangle given the edges and adjacency list

The step 2 and 3 are repeated starting from 1 thread up to 20 threads. Moreover at the end of each run of step 2 and 3 the application will print out usefull statistics, like the number of detected triangle, the elapsed time taken for the triangle count and adjacency list creation and thus also both speedups.

Results

These result was achived running the application on a HP ElideDesk G1 TW with 8 cores CPU:

undirected_graphs_triangle_counter's People

Contributors

zuliani99 avatar

Watchers

 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.