File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f
52
52
53
53
### Iterator Example
54
54
``` @example layouts
55
- iterator = LayoutIterator(layout, adjacency_matrix(g) )
55
+ iterator = LayoutIterator(layout, g )
56
56
record(f, "sfdp_animation.mp4", iterator; framerate = 10) do pos
57
57
p[:node_positions][] = pos
58
58
autolimits!(ax)
@@ -96,7 +96,7 @@ hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
96
96
```
97
97
### Iterator Example
98
98
``` @example layouts
99
- iterator = LayoutIterator(layout, adjacency_matrix(g) )
99
+ iterator = LayoutIterator(layout, g )
100
100
record(f, "spring_animation.mp4", iterator; framerate = 10) do pos
101
101
p[:node_positions][] = pos
102
102
autolimits!(ax)
@@ -119,7 +119,7 @@ hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
119
119
120
120
### Iterator Example
121
121
``` @example layouts
122
- iterator = LayoutIterator(layout, adjacency_matrix(g) )
122
+ iterator = LayoutIterator(layout, g )
123
123
record(f, "stress_animation.mp4", iterator; framerate = 10) do pos
124
124
p[:node_positions][] = pos
125
125
autolimits!(ax)
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ function __init__()
90
90
function layout (l:: AbstractLayout , g:: LightGraphs.AbstractGraph )
91
91
layout (l, LightGraphs. adjacency_matrix (g))
92
92
end
93
+ function LayoutIterator (l:: IterativeLayout , g:: LightGraphs.AbstractGraph )
94
+ LayoutIterator (l, LightGraphs. adjacency_matrix (g))
95
+ end
93
96
end
94
97
end
95
98
You can’t perform that action at this time.
0 commit comments