Giter Site home page Giter Site logo

shubhangiat / chisel Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 51 KB

ChiSeL: Graph Similarity Search using Chi-Squared Statistics in Large Probabilistic Graphs

C 0.96% C++ 97.75% Makefile 1.29%
graph-querying probabilistic-graphs uncertain-graphs chi-squared-test

chisel's Introduction

ChiSeL

Introduction

ChiSeL is a novel algorithmic framework that uses the idea of statistical significance for approximate subgraph matching on uncertain graphs. For each candidate matching vertex in the target graph that matches a query vertex, it computes its statistical significance using the chi-squared statistic. The search algorithm then proceeds in a greedy manner by exploring the vertex neighbors having the largest chi-square score. The algorithm works well on large real-life graphs with millions of vertices and billions of edges and can compute answer seconds after reading the input graph.

Please cite our paper, if you use our source code.

  • "ChiSeL: Graph Similarity Search using Chi-Squared Statistics in Large Probabilistic Graphs. VLDB'20"

How to run the binary file?

Compile all the header files and dependent cpp files through make command and then run the binary file with appropriate arguments.

make  
./subgraph <input graph vertex-label file> <input graph edge file> <list of query graph files>

For instance, following compiles and runs the program on the sample data files.

make
./subgraph ip_v15_label.txt ip_v15_edge.txt qry_graphs.txt

Parameters

The k for top-k matching subgraphs can be set in the const.h header file.

Flags

During compilation flags can be set in makefile.

  • -DDMEASURE
    To measure heap sizes.

  • -DPERTURB_CRIT
    To perturb the original graph at runtime. The probability of graph edges that match with the query graph edges are set to 1 before the subgraph search and are reset to old value after the computation of answers.
    Note: All query graph vertex-ids must match the input graph vertex-ids for this.

Argument and Graph files format:

Vertex file

File format: vid label

e.g.

v1 l1  
v2 l2  
v3 l1  

Edge file

File format: vid1 vid2 edge_probability

e.g.

v1 v2 pr12
v2 v3 pr23
v3 v1 pr31

This format is followed for both input target graph. For the query graph the edge file has only two values, the vertex ids of an edge.

Format of third argument (list of query graph files)

<query graph vertex-label file 1> <query graph edge file 1>
<query graph vertex-label file 2> <query graph edge file 2>

chisel's People

Contributors

shubhangi-agarwal avatar shubhangiat avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.