Coder Social home page Coder Social logo

satyakisikdar / cnrg Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 2.0 14.93 MB

Code release for the paper "Modeling Graphs with Vertex Replacement Grammars" by Sikdar et al.

License: MIT License

GAP 81.57% Python 4.77% Makefile 0.03% C 7.32% Shell 0.01% MATLAB 1.66% HTML 4.64%
graph-theory graph-model graph graph-generator

cnrg's Introduction

Code repository for the paper Modelling graphs with Vertex Replacement Grammars by Satyaki Sikdar, Justus Hibshman, and Tim Weninger. Find the preprint here.

Run python3 -m pip install -r requirements.txt prior to running runner.py to install required packages.

Usage instructions (also visible by running python3 runner.py -h)

usage: runner.py [-h] [-g] [-c] [-b {full,part,no}] [-l LAMB] [-s] [-o OUTDIR]
                 [-n N]

optional arguments:
  -h, --help            Show this help message and exit
  -g, --graph           Name of the graph, looks in the ./src/tmp directory for the edge list (default: karate)
  -c, --clustering      Clustering method to use (default: louvain)
  -b {full,part,no}, --boundary {full,part,no}
                        Degree of boundary information to store (default: part)
  -l , --lamb LAMB      Size of RHS (lambda) (default: 5)
  -s , --selection      Selection strategy (default: level)
  -o , --outdir OUTDIR  Name of the output directory (default: output)
  -n N                  Number of graphs to generate (default: 5)

Edge lists of new undirected graphs can be added in the ./src/temp/ directory with extension .g.

cnrg's People

Contributors

daniel-gonzalez-cedre avatar satyakisikdar avatar tweninger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cnrg's Issues

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.