Skip to content

Layout algorithms for graphs and trees in pure Julia.

License

Notifications You must be signed in to change notification settings

musoke/NetworkLayout.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetworkLayout.jl

Layout algorithms for graphs and trees in pure Julia.

Stable Dev Build Status Coverage

Installation

pkg> add NetworkLayout

Algorithms

The available algorithms and their parameters can be found in the docs.

All of the algorithms represent mappings adjacency matrix ↦ vector of positions where the positions are represented by the Point datatype from `GeometryBasics.jl

using NetworkLayout
using Graphs

adj_matrix = adjacency_matrix(wheel_graph(10))

pos = spring(adj_matrix; iterations=20)
pos = algorithm(adj_matrix)

There is also a "delayed" functor version of each algorithm:

layout = Spring(; iterations=20)
pos = layout(adj_matrix)

Instead of passing a adjacency matrix on can also pass Graphs.jl graphs directly.

About

Layout algorithms for graphs and trees in pure Julia.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Julia 100.0%