GithubHelp home page GithubHelp logo

rumor-fx's Introduction

Rumor-fx

This is the repository for my Computer networks and Distributed systems class assignment. I wrote a program that demonstrates the rumor spreading algorithms described in the paper, How to Discreetly Spread a Rumor in a Crowd written by Mohsen Ghaffari and Calvin Newport in 2016.

The program was written in Kotlin with TornadoFX.

Build and run

  • Clone this repository git clone https://github.com/pjozsef/Rumor-FX.git
  • Install a Java8 JDK
  • Build
    • ./gradlew fatjar on Linux
    • ./gradlew.bat fatjar on Windows
  • Run
    • java -jar build/libs/rumor-fx-all-1.0.0.jar

Usage

  • Graph editor pane on the left
    • Add a new node by left clicking on the editor pane
    • Select a node by left clicking on it (you to select a node to start the simulation)
    • Delete a node by Ctrl + left clicking on it
    • Move a node by left mouse dragging it
    • Add a new edge by Shift + left click and dragging from one node to the other
    • Delete an edge by drawing a line crossing it with Shift + left click and drag
  • Settings pane on the right
    • Adjust animation speed with the animation speed slider (sliding it to zero disables animation and the simulation terminates immediately)
    • Start a simulation with the PUSH, PULL, PUSH-PULL B=0, PUSH-PULL B=1 buttons
    • To load a larger, predefined graph, click the LOAD button
    • To clear your current graph entirely, click the Clear button
    • While the simulation is running, you will see a label that shows how many rounds have passed since the start

Keep in mind that the simulations won't terminate if there are isolated nodes in the graph.

rumor-fx's People

Contributors

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