Coder Social home page Coder Social logo

fvella / axbc Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 399 KB

Multi-heuristics optimization for approximating BC on large-scale graphs on Multi-GPUs

Makefile 0.36% C 93.81% Cuda 5.40% Perl 0.36% Shell 0.06%
graph graph-algorithms analytics parallel-algorithm

axbc's Introduction

Approximated Betwenness Centrality AxBC

Multi-heuristics Optimization for approximating BC on large-scale graphs on Multi-GPUs

Short description and usage

AxBC provide an fully-distributed approximated algorithm for computing Betwenness Centrality on large-scale graphs.

The algorithm is based sampling technique which consist on selecting nodes (pivots) to run Brandes' algorthm1. The number of pivots can be statically assigned (e.g., 10% of the nodes of the graph) or determined according to a stop criterion based on the approximated score determied by the probability estimator (adaptive sampling2).

Description of the heuristics.

The algorithm provides two kind of heuristics

  • static: based on the property of the graph (e.g., degree distribution)
  • dynamic: based on the computation of the Brandes of the previous itarations
  1. uniform sampling (adaptive sampling)
  2. Close to High-degree vertex
  3. Betwenness-based
  4. Lazy approach based on delta of the previous step
  5. LCC based

Example of usage

Description of the most important options

./<axbc> -p <row procs X column procs> -f <path to the graph.txt> -n <number of vertices of the graphs> -c <adaptative sempling ON/OFF> -x <number of vertices to check for the approximation for the adaptative sampling> -z <heuristic> -N <static number of rounds>

-c is seleted the value -N represent the maximum number of Brandes iterations.

Herustics

Select a strategy between 0 and 6.

  1. Uniform sampling
  2. High-Degree Neighborhood: first randomly select an vertex with an high outdegree. Then it randomly selects a neighbours of a such vertex.
  3. Local Clustering Coefficient: compute a distribution based on LCC score. This heuristics is particularly expesive on large graphs.
  4. BC-based sampling strategy: randomly select the next vertex based on current BC score distribution (dynamic long-memory heuristic)
  5. Delta sampling strategy: randomly select the next vertex based on current delta distribution (dynamic short-memory heuristic).
  6. BC-based inverse sampling strategy: 1-BC based sampling strategy.
  7. Roulette wheel: randomly select one of the heustistics for each iteration of the algorithm.

Other options are:

-H 1: implements 1-degree reduction. Pre-process the graph by removing vertices with 1 neighbour (1-degree reduction).

-m: shared-memory implementation.

-U: make the graph undirected.

-a: analyze the degree.

-d: dump the graph.

Footnotes

  1. Brandes, U., 2001. A faster algorithm for betweenness centrality. Journal of mathematical sociology, 25(2), pp.163-177.

  2. Bader, D.A., Kintali, S., Madduri, K. and Mihail, M., 2007, December. Approximating betweenness centrality. In International Workshop on Algorithms and Models for the Web-Graph (pp. 124-137). Springer, Berlin, Heidelberg.

axbc's People

Contributors

fvella avatar

Stargazers

Antonino Tumeo avatar

Watchers

James Cloos avatar  avatar Antonino Tumeo avatar  avatar

axbc's Issues

To do

  • Check the estimator especially when we use the roulette wheel
  • Depth stop criterion?
  • target (vertex) stop criterion
  • error estimation eps
  • check if BC-based distribution is better than 1 - BC-based distribution.

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.