Introduction to Karnak
Karnak.jl is a small extension for the Luxor.jl package to help with visualizing graphs and networks.
Karnak also relies on Graphs.jl for graph construction, and on NetworkLayout.jl for graph layout.
There's a good selection of Julia packages for visualizing graphs:
TikzGraphs.jl: backend: Tikz/LaTeX
GraphPlot.jl: backend: Compose.jl
SGtSNEpi.jl: backend: Makie.jl
GraphRecipes.jl: backend: Plots.jl
GraphMakie.jl: backend: Makie.jl
Quick start
using Karnak
using Graphs
using NetworkLayout
g = barabasi_albert(100, 1)
@drawsvg begin
background("black")
sethue("white")
drawgraph(g, layout=stress, vertexlabels = 1:nv(g))
end
Karnak.jl contains just one function: drawgraph()
, and re-exports Luxor.jl. So all graphics and drawing functions are from Luxor. See the documentation of Luxor.jl for details.