-
Notifications
You must be signed in to change notification settings - Fork 63
Update README.md #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README.md #99
Conversation
Update `Graphs.jl` examples to `LightGraphs.jl`
|
@simonschoelly - mind taking a look? I'm not at a system where I can test the LG changes but I think they're correct. |
Codecov Report
@@ Coverage Diff @@
## master #99 +/- ##
==========================================
- Coverage 33.54% 27.29% -6.25%
==========================================
Files 9 8 -1
Lines 474 392 -82
==========================================
- Hits 159 107 -52
+ Misses 315 285 -30
Continue to review full report at Codecov.
|
|
I didn't do anything that would've affected codecov. |
| using Graphs | ||
| nodelabel = [1:num_vertices(g)] | ||
| using LightGraphs | ||
| nodelabel = [vertices(g)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| nodelabel = [vertices(g)] | |
| nodelabel = collect(vertices(g)) |
| ## Draw edge labels | ||
| ```julia | ||
| edgelabel = [1:Graphs.num_edges(g)] | ||
| edgelabel = [1:ne(g)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| edgelabel = [1:ne(g)] | |
| edgelabel = collect(1:ne(g)) |
| ## Adjust edge labels | ||
| ```julia | ||
| edgelabel = [1:Graphs.num_edges(g)] | ||
| edgelabel = [1:ne(g)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| edgelabel = [1:ne(g)] | |
| edgelabel = collect(1:ne(g)) |
| @@ -121,7 +121,7 @@ gplot(g, layout=spectral_layout) | |||
| ```julia | |||
| nlist = Array(Vector{Int}, 2) # two shells | |||
| nlist[1] = [1:5] # first shell | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| nlist[1] = [1:5] # first shell | |
| nlist[1] = collect(1:5) # first shell |
| nlist = Array(Vector{Int}, 2) # two shells | ||
| nlist[1] = [1:5] # first shell | ||
| nlist[2] = [6:num_vertices(g)] # second shell | ||
| nlist[2] = [6:nv(g)] # second shell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| nlist[2] = [6:nv(g)] # second shell | |
| nlist[2] = collect(6:nv(g)) # second shell |
| @@ -121,7 +121,7 @@ gplot(g, layout=spectral_layout) | |||
| ```julia | |||
| nlist = Array(Vector{Int}, 2) # two shells | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| nlist = Array(Vector{Int}, 2) # two shells | |
| nlist = Vector{Vector{Int}}(undef, 2) # two shells |
|
Didn't see this PR, so I made similar changes in #104 . Therefore I am closing this PR now. |
Update
Graphs.jlexamples toLightGraphs.jl