Skip to content

Latest commit

 

History

History
81 lines (55 loc) · 2.13 KB

README.md

File metadata and controls

81 lines (55 loc) · 2.13 KB

make C++ Build Status Platform

Efficient (alpha, beta)-core computation in bipartite graphs

Graph format

A .meta file contains the number of edges and the number of nodes in each part. See data/example.meta a .e file contains all the edges. See data/example.e

data
├── example.e
├── example.meta

Build index

To build index with BasicDecom:

./abcore -BasicDecom path_to_graph (e.g. ./abcore -BasicDecom ../data/example)

To build index with ComShrDecom:

./abcore -ComShrDecom path_to_graph (e.g. ./abcore -ComShrDecom ../data/example)

To build index with ParallelDecom:

./abcore -ParallelDecom path_to_graph num_cores (e.g. ./abcore -ParallelDecom ../data/example 20)

Querying

To query alpha beta core using BiCoreIndex:

./abcore -Query path_to_graph alpha beta (e.g. ./abcore -Query ../data/example 2 3)

Dynamic operations

To insert edge with BiCore-Index-Ins:

./abcore -BiCore-Index-Ins path_to_graph vertex_1 vertex_2 (e.g. ./abcore -BiCore-Index-Ins ../data/example 3 6)

To remove edge with BiCore-Index-Rem:

./abcore -BiCore-Index-Rem path_to_graph vertex_1 vertex_2 (e.g. ./abcore -BiCore-Index-Rem ../data/example 3 7)

To insert edge with BiCore-Index-Ins*:

./abcore -BiCore-Index-Ins* path_to_graph vertex_1 vertex_2 (e.g. ./abcore -BiCore-Index-Ins* ../data/example 3 6)

To remove edge with BiCore-Index-Rem*:

./abcore -BiCore-Index-Rem* path_to_graph vertex_1 vertex_2 (e.g. ./abcore -BiCore-Index-Rem* ../data/example 3 7)

To insert edge with ParallelIns:

./abcore -ParallelIns path_to_graph vertex_1 vertex_2 num_cores (e.g. ./abcore -BiCore-Index-Ins* ../data/example 3 6 20)

To remove edge with ParallelRem:

./abcore -ParallelRem path_to_graph vertex_1 vertex_2 num_cores (e.g. ./abcore -BiCore-Index-Rem* ../data/example 3 7 20)