Coder Social home page Coder Social logo

ergms's Introduction

Exponential Random Graph Models

This repo contains most of the code used for Chapter 4 of my PhD thesis (see phd_thesis_senkevich.pdf). In a nutshell, it turns out that due to the infinite dimensional nature of the considered ERGMs they are precisely described by the mean field theory which is supported by the results of Monte Carlo simulations implemented in this repo. The code is structured as follows.

Code

Every considered homogeneous ERGM apart from the MF model has a dedicated directory, namely ./q_star_model, ./triad_model and ./AKS_model, each of which contains */figures directory containing the figures from the thesis. Every image from the */figures directory has its corresponding (with the same name) python script in the "scripts" directory, which was used to generate the image. Most of these scripts rely on the data stored in */data directory in the form of .csv files with descriptive names. The data files needed for most of the scripts are already in the correct locations within */data directory, so running the scripts with Python 3 should (assuming the installation of all required packages) reproduce the images as they appear in the */figures directory. To run the actual simulations of the model one needs to compile the C++ code from the */main_sim, which relies on the files from the ./GraphOS directory. This can be done (assuming g++ is installed) by running the */main_sim/compile.sh script which places the binaries into */bin directory from which they should be launched in order for the results to be saved in their correct locations. Before that it is recommended to comment out the compilation of the unneeded code from */main_sim/compile.sh to reduce the time it takes to run the compilation script (should not take too long anyways). Finally, the ./general_images directory contains some figures that don't rely on any data and follows the same structure, i.e. .png files from */figures correspond to Python scripts in */scripts which produce them.

ergms's People

Contributors

olegrs avatar

Watchers

 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.