Skip to content

A port of Gephi's Force Atlas 2 layout algorithm to Julia(Graph).

License

Notifications You must be signed in to change notification settings

sudame/ForceAtlas2.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ForceAtlas2.jl

Barabasi Albert Network

A port of Gephi's Force Atlas 2 layout algorithm to Julia(Graph).

Installation

in Julia REPL, Pkg mode

add https://github.com/sudame/ForceAtlas2.jl

Dependencies

  • JuliaGraph
  • GraphPlot (only for examples)

Usage

See examples

using Graphs, GraphPlot, ForceAtlas2

g = random_regular_graph(100, 2)
locs_x, locs_y = forceatlas2_layout(g, 1000)

gplot(g, locs_x, locs_y)

If you prefer the default number of iterations (100 iterations), you can do as follow:

using Graphs, GraphPlot, ForceAtlas2

g = random_regular_graph(100, 2)
gplot(g, layout=forceatlas2_layout)

Limitation

This version works very slow. This is only a port of python package and is not optimize for Julia.

Copyright

Copyright (C) 2022 SUDA Mikihiro s@sudame.net
Licensed under the GNU GPLv3.

Notice

The programs are heavily based on the Python implementation of Force Atlas 2, by Bhargav Chippada.

You can get the python version from GitHub: bhargavchippada/forceatlas2

Notice of Notice

The original version of Force Atlas 2 is Gephi's version. You can also find original paper.

Releases

No releases published

Languages