-
Notifications
You must be signed in to change notification settings - Fork 21
fix haskey(g, :v1, :v2) for nonexistent vertices #12
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
Conversation
`arrange()` will fail for nonexistent vertices, so check that both vertices exist first. Add doctests for both forms of `haskey()`.
Codecov Report
@@ Coverage Diff @@
## master #12 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 217 217
=========================================
Hits 217 217
Continue to review full report at Codecov.
|
Great! Thanks!! |
Oops, forgot to merge sorry! |
Do you need a new release? |
It'd be nice, then I can remove the workarounds in my own code.
From: bramtayl <[email protected]>
Sent: Thursday, February 18, 2021 10:41 AM
To: JuliaGraphs/MetaGraphsNext.jl <[email protected]>
Cc: Stuhl, Benjamin K. (Assoc) <[email protected]>; Author <[email protected]>
Subject: Re: [JuliaGraphs/MetaGraphsNext.jl] fix haskey(g, :v1, :v2) for nonexistent vertices (#12)
Do you need a new release?
-
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#12 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQRGBUDKQIWG3BLK3KD3QMLS7VGJBANCNFSM4VTOFZJA>.
|
Ok! JuliaRegistries/General#30379 How do you like the package? |
I found it quite useful. I added another helper (beyond the `label_of()` that is also available in the new release) to make it easier to go between `LightGraphs.jl` and `MetaGraphsNext.jl`:
```julia
# map Edge to pair of labels
_labels_of(g::MetaGraph, e::Edge) = _label_of(g, e.src), _label_of(g, e.dst)
```
From: bramtayl <[email protected]>
Sent: Thursday, February 18, 2021 1:12 PM
To: JuliaGraphs/MetaGraphsNext.jl <[email protected]>
Cc: Stuhl, Benjamin K. (Assoc) <[email protected]>; Author <[email protected]>
Subject: Re: [JuliaGraphs/MetaGraphsNext.jl] fix haskey(g, :v1, :v2) for nonexistent vertices (#12)
Ok! JuliaRegistries/General#30379<JuliaRegistries/General#30379> How do you like the package?
-
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#12 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQRGBUFVIFE72W23F2LDAITS7VYBNANCNFSM4VTOFZJA>.
|
I've had to make |
arrange()
will fail for nonexistent vertices, so check that bothvertices exist first. Add doctests for both forms of
haskey()
.