Hypergraph partitioner based on the idea of neighborhood expansion that processes very large hypergraphs (with up to billions of vertices) using only a single thread. The source code is written in C++.
Then run the following to build HYPE:
git clone https://github.com/mayerrn/HYPE
mkdir build && cd build
Another option is to use the
build.sh script which automaticaly creates the
folder, runs cmake and make in it for you.
To use Clang as compiler, run
cmake -DUSE_CLANG=ON .. instead of
To start the partitioner, follow the commands provided in the main file. The following parameters can be set:
|display help message
|if set, output is formatted in csv to make it easier to plot directly. If not set, the output is more verbose.
|input hypergraph file
|if set, final partitions will be written into files in the directory of the given graph
|specify the input format of the hypergraph file
|number of partitions
|maximum size of the secondary set (called 'fringe' in the paper); in paper, this is set to 10
|how many percent of the biggest hyperedges will be removed; experimental, set to 0 to reproduce results from paper
|Switch to choose between exact and cached calculation for the node heuristic
|Seed used to initialize random number generators if used
|specifies how the a node will be choosen to when S-set is empty; in paper,
next-best is used
|number of candidates explored during neighbourhood expantion. Using other values than 2 is not recommended. To reproduce the results from the paper don't use this option at all or set it to 2.
HYPE supports different input formats for the hypergraphs to make it easy to use.
HYPE is able to read in bipartite graphs and transform them directly into hypergraphs.
To do so add the
-f bipartite parameter when calling HYPE and make sure your input file
has the following structure:
which means each line models a edge from the vertex with the id on the left side to the vertex with the id on the right side. Be aware that this input format is the slowest to read a hypergraph into HYPE
When HYPE is called with
-f hmetis, HYPE expects the input to have the hMetis input file fomat
In our test the hMetis input format was the fastest to read in using HYPE.
Per default HYPE expects a file in the edgelist format. In the edgelist format each line models a node followed by a comma seperated list of edges it is connected to. For example:
4: 1, 2, 3, 4, 5
5: 3, 5, 7
This would be a hypergraph with node
4 connected to edges
1,2,3,4,5 and so on.
This file format was used in the paper.
Christian Mayer, Ruben Mayer, Sukanya Bhowmik, Lukas Epple and Kurt Rothermel, “HYPE: Massive Hypergraph Partitioning with Neighborhood Expansion”, accepted at 2018 IEEE International Conference on Big Data (BigData ‘18), to appear. Preprint available on ArXiv: https://arxiv.org/abs/1810.11319