Code Monkey home page Code Monkey logo

force-atlas-2's Introduction

Force-Atlas-2

R implementation of the Force Atlas 2 graph layout designed for Gephi. The algorithm is detailed in:

Jacomy M, Venturini T, Heymann S, Bastian M (2014) ForceAtlas2, a Continuous Graph Layout Algorithm for Handy Network Visualization Designed for the Gephi Software. PLoS ONE 9(6): e98679. doi:10.1371/journal.pone.0098679

Installation

This is not a package yet, so you should download the "ForceAtlas2.R" file and source() it.

Usage

   library(igraph)
   g <- graph.ring(100)
   layout.forceatlas2(g, iterations=10000, plotstep=500)

Disclaimer

This function is currently under development, use it at your own risk. Is written in R not in C++ as the igraph package so it can be slow compared to other layouts.

Authors

force-atlas-2's People

Contributors

adolfoalvarez avatar analyxcompany avatar

Stargazers

André Ourednik avatar George G. Vega Yon avatar Gökçen Eraslan avatar Carlos Paradis avatar Angelo A. Salatino avatar Jae-Hwan avatar Jitao David Zhang avatar Joshua Kunst avatar Jesse Fagan avatar Stephan Schlögl avatar

Watchers

James Cloos avatar Stephan Schlögl avatar  avatar

force-atlas-2's Issues

node_ids?

Hi,
I was looking for an implementation of ForceAtlas2 for a long time. Thank you for this valuable work!

However I'm not sure if I use this the right way. The functions just returns positions and I'am not sure which positions correspond to which node. I changed the outcome of the function to:

position <- as.data.frame(position)
ids <- data.frame(id=sort(unique(c(PairedData[,1],PairedData[,2]))))
position <- cbind(ids, position) 
return(position)

is this returning the right ids? Line 2 comes from AdjacencyMatrix function inside forceatlas2.

Best,
stephan

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.