Coder Social home page Coder Social logo

graphpartitioners's Introduction

GraphPartitioner

This repo includes some classical graph partitioning methods for large-scale graph datastes. Graph Partitioning can roughly be categoried into vertex and edge partitioning. For vertex partitioning, it evenly distributes vertices to multiple workers each of which maintains a consistent partial state of the graph. And vice versa for edge partitioing. For more details please refer to the survey.

Vertex Partitioning

The METIS is the most popular algorithm for vertex partitioning. And it has been employed in DGL and PGL. We implement the streaming vertex partitioning, LDG and Fennel. There are few public codes for these methods and our codes may not the most efficency one. You can run on small graph datastes.

Edge Partitioning

We reproduce the NE partitioner and streaming methods (DBH and HDRF).

Prepare

You can employ your own datasets on above partitioners. The data format needs as beblow:

# ids must start from 0
# the graph is undirected and only list one directional edge
src_id tgt_id

some args in the main.cpp:

int pnum=150;
int memsize=4096;
string method="fennel";
double lambda=1.1;
double balance_ratio=1.05;
string edgename="/data0/mzs/Code/MPGraph/data/products/walks.txt";

pnum is the partitioned chunks, memsize is the memory size for edge streaming methods, method is the choosed partitioner, lambda is for HDRF, balance_ratio is the edge counts deviating from the average, edgename is the absolute path for graph datasets.

Make and run the main.cpp. The output file is the partitioned results and saved in {edgename}.edgepart.{pnum}.

Future

Our data-driven streaming graph partitioning will be released soon. It combines the node attributes and graph structure to partition the graph data and excute efficent distributed graph neural networks.

graphpartitioners's People

Contributors

zongshenmu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.