1 Star 0 Fork 0

PKUMOD / GraphSetIntersection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

GraphSetIntersection

This repository is about the source code of our paper "Speeding Up Set Intersections in Graph Algorithms using SIMD Instructions".

To compile our code, just type make in the src directory, and all executables (including tc, mc, sm, reorder) will be ok.

The software can be run as follows:

./tc [graph_file_name]

For example, count the number of triangles in youtube_cont.txt (in original order):

./tc ../data/youtube_cont.txt

Take the reordered graph file as the input:

./tc ../data/youtube_cont_GRO.txt

Executables mc (maximal clique algorithm) and sm (subgraph matching algorithm) can be run in the same way.

To reorder a graph, run:

./reorder <graph_file_name> [-order OPT]

Optional argument OPT can be: gro, hybrid, mloggapa, metis, slashburn, bfsr, dfs. Please refer to our paper for the different graph orderings.

The format of the input graph file is shown as follows.

0       1
0       2
1       3
...

Each line is an edge of the graph and there should be M lines in the input file if the graph has M edges. The first integer of each line denotes the start node of the edge and the second integer denotes the end node of the edge. The node IDs should be continuous and start with 0.

Edges are directed in default. For undirected graphs, double the edges in both directions.

0       1
0       2
1       0
1       3
2       0
3       1
...

Real graph datasets can be obtained from SNAP ("http://snap.stanford.edu/data/") and KONECT ("http://konect.uni-koblenz.de/").

Our code are tested on Linux system using GCC 4.8.5 and GCC 5.3.0.

If you use our code for research work, please kindly cite the following paper:

Shuo Han, Lei Zou, and Jeffrey Xu Yu. Speeding Up Set Intersections in Graph Algorithms using SIMD Instructions. Proceedings of SIGMOD, 2018.

MIT License Copyright (c) 2018 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Codes of the paper "Speeding Up Set Intersections in Graph Algorithms using SIMD Instructions" 展开 收起
C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/PKUMOD/GraphSetIntersection.git
git@gitee.com:PKUMOD/GraphSetIntersection.git
PKUMOD
GraphSetIntersection
GraphSetIntersection
master

搜索帮助