Skip to content

asherliu/cpu_bc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Betweenness centrality (BC) on CPU

CPU implementation for BC on weighted graph Contributor: Hang Liu (asherliu@gwu.edu)


Environment requirement:

g++, openmp


Compile

  • make

Execution

  • ./cpu_bc /path/to/beg.bin /path/to/csr.bin /path/to/weight.bin num_threads

Graph Converter

Currently, we support converting a graph from matrix based text format. (credit to Yang Hu)

  • Source code of converter is in ./converter folder
  • Compile: g++ converter.cpp -o converter
  • Execution: ./converter /path/to/matrix_graph.txt (please make sure there is no blanket lines in this file)
  • You will get four files: beg.bin, csr.bin, weight.bin and degree.bin.
  • The former three files are exactly the files required by CPU BC execution

About

Multi-thread Betweenness Centrality (BC) on CPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages