Giter Site home page Giter Site logo

uclasm's Introduction

logo

Subgraph Matching on Multiplex Networks

Zenodo Archive PyPI Version Supported Python Versions

To reproduce our experiments, you will need at least Python 3.7 and a few packages installed. You can check your python version with

$ python --version

and install the necessary packages with

$ python -m pip install numpy scipy pandas tqdm matplotlib networkx

You will also need a local copy of our code either cloned from GitHub or downloaded from a Zenodo archive. To install our package from your local copy of the code, change to the code directory and use pip.

$ cd uclasm
$ python -m pip install .

Erdős–Rényi Experiments

Running the experiments will take a while depending on your hardware.

$ cd experiments
$ python run_erdos_renyi.py
$ python plot_erdos_renyi.py

Change the variables in run_erdos_renyi.py to run with different settings i.e. number of layers and whether isomorphism counting is being done.

plot_erdos_renyi.py will generate a figure called n_iter_vs_n_world_nodes_3_layers_500_trials_iso_count.pdf which corresponds to figure 7 in the paper. Other figures related to time and number of isomorphisms will also be generated.

Sudoku Experiments

Running the experiments will take a while depending on your hardware.

$ cd experiments
$ python run_sudoku.py
$ python plot_sudoku_times.py

plot_sudoku_times.py will generate a figure called test_sudoku_scatter_all_log.pdf which corresponds to figure 6 in the paper. Other figures for each individual dataset will also be generated.

uclasm's People

Contributors

jdmoorman avatar ephesosx avatar qinyichen avatar domyang avatar hexie1995 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.