diff --git a/README.md b/README.md index 5bcbce3..2903f8d 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,81 @@ -# alpha-beta-core -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 + + + + +# Efficient (alpha, beta)-core computation in bipartite graphs -To build index with BasicDecom: +## 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: + +```shell ./abcore -BasicDecom path_to_graph (e.g. ./abcore -BasicDecom ../data/example) +``` + +To build index with ComShrDecom: -To build index with ComShrDecom: +```shell ./abcore -ComShrDecom path_to_graph (e.g. ./abcore -ComShrDecom ../data/example) +``` -To build index with ParallelDecom: +To build index with ParallelDecom: + +```shell ./abcore -ParallelDecom path_to_graph num_cores (e.g. ./abcore -ParallelDecom ../data/example 20) +``` + +## Querying -To query alpha beta core using BiCoreIndex: +To query alpha beta core using BiCoreIndex: + +```shell ./abcore -Query path_to_graph alpha beta (e.g. ./abcore -Query ../data/example 2 3) +``` + +## Dynamic operations -To insert edge with BiCore-Index-Ins: +To insert edge with BiCore-Index-Ins: + +```shell ./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: -To remove edge with BiCore-Index-Rem: +```shell ./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*: +To insert edge with BiCore-Index-Ins*: + +```shell ./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*: -To remove edge with BiCore-Index-Rem*: +```shell ./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: +To insert edge with ParallelIns: + +```shell ./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: -To remove edge with ParallelRem: +```shell ./abcore -ParallelRem path_to_graph vertex_1 vertex_2 num_cores (e.g. ./abcore -BiCore-Index-Rem* ../data/example 3 7 20) +``` diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..cab9fda --- /dev/null +++ b/docs/index.html @@ -0,0 +1,1610 @@ + + +
+ + +
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
xxxxxxxxxx
31data
2├── example.e
3├── example.meta
To build index with BasicDecom:
xxxxxxxxxx
11./abcore -BasicDecom path_to_graph (e.g. ./abcore -BasicDecom ../data/example)
To build index with ComShrDecom:
xxxxxxxxxx
11./abcore -ComShrDecom path_to_graph (e.g. ./abcore -ComShrDecom ../data/example)
To build index with ParallelDecom:
xxxxxxxxxx
11./abcore -ParallelDecom path_to_graph num_cores (e.g. ./abcore -ParallelDecom ../data/example 20)
To query alpha beta core using BiCoreIndex:
xxxxxxxxxx
11./abcore -Query path_to_graph alpha beta (e.g. ./abcore -Query ../data/example 2 3)
To insert edge with BiCore-Index-Ins:
xxxxxxxxxx
11./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:
xxxxxxxxxx
11./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*:
xxxxxxxxxx
11./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*:
xxxxxxxxxx
11./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:
xxxxxxxxxx
11./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:
xxxxxxxxxx
11./abcore -ParallelRem path_to_graph vertex_1 vertex_2 num_cores (e.g. ./abcore -BiCore-Index-Rem* ../data/example 3 7 20)