Skip to content

Commit

Permalink
Update graphs docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brucala authored Dec 8, 2024
1 parent c6e5a8f commit c43c7e0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/src/graphs.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Graphs extensions
# Graphs extension

!!! note "
!!! note
This is work in progress


If `Graphs` and `NetworLayout` are installed the `GraphsExt` extension is automatically loaded.
This extension allows to conveniently draw network charts from any `AbstractGraph` using a given
layout from `NetworLayout` (Spring layout by default).

```@example
```@example graphs
using Deneb, Graphs, NetworkLayout
g = barabasi_albert(25, 1)
chart = plotgraph(
plotgraph(
g,
node_labels=true, # graph id (could've been a vector or an attribute)
node_colors=:state, # assigns a node attribute named 'state' to be used as node color encoding
Expand All @@ -30,4 +30,6 @@ chart = plotgraph(
) * vlspec(height=500, width=500)
```

more to be said...
See the [Graphs](@ref) section of the Gallery for more examples of graph charts with Deneb.jl.

more to be said...

0 comments on commit c43c7e0

Please sign in to comment.