Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ The source code of the work "Lightning Fast and Space Efficient k-clique Countin

## Build

makedir bin
`mkdir bin`

make
`make`

make changeToD
`make bin/changeToD`

make makeCSR
`make bin/makeCSR`

### Data format

Expand All @@ -34,21 +34,27 @@ n,m



run: bin/makeCSR ./data/dblp/dblp.txt ./data/dblp/tmpedge.bin ./data/dblp/tmpidx.bin, and we get:
run:
`bin/makeCSR ./data/dblp/dblp.txt ./data/dblp/tmpedge.bin ./data/dblp/tmpidx.bin`

and we get:

​ ./data/dblp/tmpedge.bin ./data/dblp/tmpidx.bin

run bin/changeToD -edge ./data/dblp/tmpedge.bin -idx ./data/dblp/tmpidx.bin -v 425957
run
`bin/changeToD -edge ./data/dblp/tmpedge.bin -idx ./data/dblp/tmpidx.bin -v 425957`

-v is the node num.
-v is the number of nodes.

and we get ./data/dblp/tmpedge.bindeg.bin ./data/dblp/tmpidx.bindeg.bin

rename ./data/dblp/tmpedge.bindeg.bin->./data/dblp/edge.bin
`mv ./data/dblp/tmpedge.bindeg.bin ./data/dblp/edge.bin`

rename ./data/dblp/tmpidx.bindeg.bin->./data/dblp/idx.bin
`mv ./data/dblp/tmpidx.bindeg.bin ./data/dblp/idx.bin`

add file s.txt under the ./data/dblp/:
the file s.txt under the ./data/dblp/ shows the number of cliques:

425957
30
Expand Down