GithubHelp home page GithubHelp logo

junhao6503 / forcedirectedplacement Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjoyo/forcedirectedplacement

0.0 2.0 0.0 259 KB

Java implementation of Fruchterman and Reingold's graph layout algorithm using force-directed placement.

License: MIT License

Java 100.00%

forcedirectedplacement's Introduction

ForceDirectedPlacement

Java implementation of Fruchterman and Reingold's graph layout algorithm using force-directed placement. This is the straight forward variant of the algorithm that has a time complexity of O(|V|²).

Installation

Simply download and run the latest .jar-File found under release.

Usage

  • Pick a stop criterion
    • Iterations: Simulation will definitly stop after n iterations, no matter what the result is
    • Mechanical Equilibrium: Simulate until the net forces on all vertices are below a certain threshold, but at most 1,000 iterations
  • Pick formulars for the attractive and repulsive forces
    • You can use simple Java-style math expressions including e.g. log(x) and sqrt(x)
    • You can insert multiple expressions seperated by a semicolon to compare their performance
  • Pick a cooling rate
    • The cooling rate c reduces the temperature t in every step: t = t * (1 - c)
    • The temperature determines how much the vertices are allowed to move in every step
    • You can find a near optimal cooling rate for your current graph by clicking Find Optimum...
      • Select Show Chartto get a chart of how a certain cooling rate performs for that graph
  • Generate a graph
    • Various types of graphs can be selected, size is the number of vertices
    • Note that size relates to the dimension for the graph type Hyper Cube and the side length for the graph type Grid
  • Pick a frame delay
    • Specifies the animation speed, zero delay means as fast as possible

Screenshots

Main Window

Chart Window

forcedirectedplacement's People

Contributors

benjoyo avatar

Watchers

 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.