+
Skip to content

cormullion/Karnak.jl

Repository files navigation

karnak splash image

Documentation Build Status
Build Status

Karnak.jl is a package for drawing graphs and networks. It's built on top of Luxor.jl.

Karnak also uses Graphs.jl for graph construction, and NetworkLayout.jl for graph layout algorithms.

Quick start

using Karnak
using Graphs
using Colors
g = barabasi_albert(100, 1)
@drawsvg begin
    background("black")
    sethue("grey40")
    fontsize(8)
    drawgraph(g, 
        layout=stress, 
        vertexlabels = 1:nv(g),
        vertexfillcolors = 
            [RGB(rand()/2, rand()/2, rand()/2) 
               for i in 1:nv(g)]
    )
end 600 400

karnak quick start

See also

There's a good selection of other Julia packages for visualizing graphs:

About

graph plotting and drawing networks with Julia, using Luxor graphics

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载