Skip to content

Commit 282a910

Browse files
committed
Update outdated code for Vector creation
1 parent 0ec9af4 commit 282a910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ gplot(g, layout=spectral_layout)
120120
```
121121
### shell layout
122122
```julia
123-
nlist = Array(Vector{Int}, 2) # two shells
123+
nlist = Vector{Vector{Int}}(undef, 2) # two shells
124124
nlist[1] = [1:5] # first shell
125125
nlist[2] = [6:nv(g)] # second shell
126126
locs_x, locs_y = shell_layout(g, nlist)

0 commit comments

Comments
 (0)