Skip to content

Commit 5d2ec58

Browse files
authored
Merge pull request #169 from etiennedeg/doc_num_vertices
remove mention of num_vertices and num_edges in the documentation
2 parents 1d090ad + 4484ca3 commit 5d2ec58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/layout.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ Vector of Vector, Vector of node Vector for each shell.
195195
**Examples**
196196
```
197197
julia> g = smallgraph(:karate)
198-
julia> nlist = Array{Vector{Int}}(2)
199-
julia> nlist[1] = [1:5]
200-
julia> nlist[2] = [6:num_vertiecs(g)]
198+
julia> nlist = Vector{Vector{Int}}()
199+
julia> push!(nlist, collect(1:5))
200+
julia> push!(nlist, collect(6:nv(g)))
201201
julia> locs_x, locs_y = shell_layout(g, nlist)
202202
```
203203
"""
@@ -242,7 +242,7 @@ the edge weight. If None, then all edge weights are 1.
242242
**Examples**
243243
```
244244
julia> g = smallgraph(:karate)
245-
julia> weight = rand(num_edges(g))
245+
julia> weight = rand(ne(g))
246246
julia> locs_x, locs_y = spectral_layout(g, weight)
247247
```
248248
"""

0 commit comments

Comments
 (0)