File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
Layout algorithms for graphs and trees in pure Julia.
3
3
4
4
[ ![ Stable] ( https://img.shields.io/badge/docs-stable-blue.svg )] ( https://juliagraphs.org/NetworkLayout.jl/stable )
5
+ [ ![ Dev] ( https://img.shields.io/badge/docs-dev-blue.svg )] ( https://juliagraphs.org/NetworkLayout.jl/dev/ )
5
6
[ ![ Build Status] ( https://github.com/JuliaGraphs/NetworkLayout.jl/workflows/CI/badge.svg )] ( https://github.com/JuliaGraphs/NetworkLayout.jl/actions )
6
7
[ ![ Coverage] ( https://codecov.io/gh/JuliaGraphs/NetworkLayout.jl/branch/master/graph/badge.svg )] ( https://codecov.io/gh/JuliaGraphs/NetworkLayout.jl )
7
8
@@ -13,7 +14,6 @@ pkg> add NetworkLayout.jl
13
14
The available algorithms and their parameters can be found in the
14
15
[ docs] ( https://juliagraphs.org/NetworkLayout.jl/stable ) .
15
16
16
-
17
17
All of the algorithms represent mappings `adjacency matrix ↦ vector of
18
18
positions` where the positions are represented by the ` Point` datatype from
19
19
[ `GeometryBasics.jl] ( https://github.com/JuliaGeometry/GeometryBasics.jl )
@@ -24,6 +24,12 @@ using LightGraphs
24
24
25
25
adj_matrix = adjacency_matrix (wheel_graph (10 ))
26
26
27
- algorithm = NetworkLayout . Spring ( ; iterations= 20 )
27
+ pos = spring (adj_matrix ; iterations= 20 )
28
28
pos = algorithm (adj_matrix)
29
29
```
30
+ There is also a "delayed" functor version of each algorithm:
31
+ ``` julia
32
+ layout = Spring (; iterations= 20 )
33
+ pos = layout (adj_matrix)
34
+ ```
35
+ Instead of passing a adjacency matrix on can also pass ` LightGraphs.jl ` graphs directly.
You can’t perform that action at this time.
0 commit comments