Skip to content

Implementation of C-3PO algorithm for constructing 2-hop cover

Notifications You must be signed in to change notification settings

henningkoehlernz/c-3po

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal acyclic 2-hop covers for large graphs

Algorithm to construct a 2-hop cover for large sparse directed acyclic graphs, allowing reachability queries to be answered quickly.

Submodules

To install submodules containting DAGs for testing, use the following commands:

git submodule init
git submodule update

Note that this will download over 1 GB worth of graph data.

Running the code

Run make to build, then ./c3po < sample.dag or ./c3po sample.dag to run the algorithm with sample.dag as input.

To run the algorithm for all graphs in the submodule, use sh run.sh.

To run variants of the algorithm, edit c-3po.h and (un)comment the relevant #define statements.

About

Implementation of C-3PO algorithm for constructing 2-hop cover

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages