From 334cd08c84af4e04b20a56c768d1a1081855b210 Mon Sep 17 00:00:00 2001 From: Greg Lee Date: Tue, 6 Jul 2021 20:30:38 -0700 Subject: [PATCH 1/2] GraphLayout is deprecated The [GraphLayout](https://github.com/IainNZ/GraphLayout.jl) package is deprecated in favor of GraphPlot. --- docs/src/plotting.md | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/docs/src/plotting.md b/docs/src/plotting.md index b97ec9eb9..4d70b8600 100644 --- a/docs/src/plotting.md +++ b/docs/src/plotting.md @@ -2,20 +2,18 @@ *LightGraphs.jl* integrates with several other Julia packages for plotting. Here are a few examples. -## [GraphLayout.jl](https://github.com/IainNZ/GraphLayout.jl) +## [GraphPlot.jl](https://github.com/afternone/GraphPlot.jl) -This excellent graph visualization package can be used with *LightGraphs.jl* -as follows: +A graph visualization package that is very simple to use. +[Compose.jl](https://github.com/dcjones/Compose.jl) is required for most rendering functionality: ```julia -julia> g = wheel_graph(10); am = Matrix(adjacency_matrix(g)) -julia> loc_x, loc_y = layout_spring_adj(am) -julia> draw_layout_adj(am, loc_x, loc_y, filename="wheel10.svg") -``` +julia> using GraphPlot, Compose -producing a graph like this: +julia> g = wheel_graph(10) -![Wheel Graph](https://cloud.githubusercontent.com/assets/941359/8960521/35582c1e-35c5-11e5-82d7-cd641dff424c.png) +julia> draw(PNG("/tmp/wheel10.png", 16cm, 16cm), gplot(g)) +``` ## [TikzGraphs.jl](https://github.com/sisl/TikzGraphs.jl) @@ -32,19 +30,6 @@ producing a graph like this: ![Wheel Graph](https://cloud.githubusercontent.com/assets/941359/8960499/17f703c0-35c5-11e5-935e-044be51bc531.png) -## [GraphPlot.jl](https://github.com/afternone/GraphPlot.jl) - -Another graph visualization package that is very simple to use. -[Compose.jl](https://github.com/dcjones/Compose.jl) is required for most rendering functionality: - -```julia -julia> using GraphPlot, Compose - -julia> g = wheel_graph(10) - -julia> draw(PNG("/tmp/wheel10.png", 16cm, 16cm), gplot(g)) -``` - ## [NetworkViz.jl](https://github.com/abhijithanilkumar/NetworkViz.jl) NetworkViz.jl is tightly coupled with *LightGraphs.jl*. Graphs can be visualized in 2D as well as 3D using [ThreeJS.jl](https://github.com/rohitvarkey/ThreeJS.jl) and [Escher.jl](https://github.com/shashi/Escher.jl). From a55926b332e2c99abe157f30caa7a1aa9b2b8d69 Mon Sep 17 00:00:00 2001 From: Greg Lee Date: Tue, 6 Jul 2021 23:42:50 -0700 Subject: [PATCH 2/2] Update plotting.md --- docs/src/plotting.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/plotting.md b/docs/src/plotting.md index 4d70b8600..61d6449dc 100644 --- a/docs/src/plotting.md +++ b/docs/src/plotting.md @@ -2,6 +2,10 @@ *LightGraphs.jl* integrates with several other Julia packages for plotting. Here are a few examples. +## [GraphRecipes.jl](https://github.com/JuliaPlots/GraphRecipes.jl) + +GraphRecipes and Plots can be used to create a wide variety of visualizations. See examples in the [Plots docs](https://docs.juliaplots.org/latest/graphrecipes/examples/). + ## [GraphPlot.jl](https://github.com/afternone/GraphPlot.jl) A graph visualization package that is very simple to use.