- UniCon is a tool for finding all connected components in a tremendous graph.
- Given an undirected graph, UniCon maps each node to the most preceding node in the same connected components.
- It runs in distributed system, Hadoop.
UniCon uses maven to manage dependencies and build the whole project. To build the project, type the following command in terminal:
mvn install -Dmaven.test.skip=true- Hadoop should be installed in your system.
- Prepare an edge list file of a graph in a HDFS directory. ex) multiple.tsv
- example (multiple.tsv)
0 1
2 3
3 4
4 5
5 6
7 8
8 9
- execute UniCon on Hadoop
hadoop jar target/UniCon-1.0-SNAPSHOT-jar-with-dependencies.jar [CLASS NAME] [OPTIONS] [INPUT] [OUTPUT]
Class names:
[# nodes < 2,147,483,647]
UniCon-base: unicon.intRange.intRange.base.UniConBase
UniCon-opt: unicon.intRange.intRange.opt.UniConOpt
[# nodes >= 2,147,483,647]
UniCon-base: unicon.longRange.intRange.base.UniConBase
UniCon-opt: unicon.longRange.intRange.opt.UniConOpt
Options:
[base version]
-DnumPartitions the number of partitions
-DnumNodes the number of nodes
[opt version]
-DnumPartitions the number of partitions
-DnumNodes the number of nodes
-Dthreshold the threshold for LocalCC optimization (default: 0)
Example:
hadoop jar target/UniCon-1.0-SNAPSHOT-jar-with-dependencies.jar unicon.intRange.opt.UniConOpt -Dmapred.reduce.tasks=80 -DnumPartitions=80 -DnumNodes=4847571 -Dthreshold=200000000 path/to/input/file path/to/output/file
| Name | #Nodes | #Edges | Description | Source |
|---|---|---|---|---|
| LiveJournal | 4,847,571 | 68,993,773 | LiveJournal online social network | SNAP |
| 41,652,230 | 1,468,365,182 | Twitter follower-followee network | Advanced Networking Lab at KAIST | |
| Friendster | 65,608,366 | 1,806,067,135 | Friendster online social network | SNAP |
| SubDomain | 89,247,739 | 2,043,203,933 | Domain level hyperlink network on the Web | Web Data Commons |
| gsh-2015 | 988,490,691 | 33,877,399,152 | Domain level hyperlink network on the Web | WebGraph |
| ClueWeb | 6,257,706,595 | 71,746,553,402 | Page level hyperlink network on the Web | Lemur Project |
| Hyperlink14 | 3,443,082,324 | 128,736,914,167 | Page level hyperlink network on the Web | Web Data Commons |
RMAT-k for k ∈ {21, 23, 25, 27, 29, 31, 33} is a synthetic graph following RMAT model. We set RMAT parameters (a, b, c, d) to (0.57, 0.19, 0.19, 0.05).
| Name | #Nodes | #Edges |
|---|---|---|
| RMAT-21 | 1,114,816 | 31,457,280 |
| RMAT-23 | 4,120,785 | 125,829,120 |
| RMAT-25 | 15,212,447 | 503,316,480 |
| RMAT-27 | 56,102,002 | 2,013,265,920 |
| RMAT-29 | 207,010,037 | 8,053,063,680 |
| RMAT-31 | 762,829,446 | 32,212,254,720 |
| RMAT-33 | 1,090,562,291 | 128,849,018,880 |










