Skip to content

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

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

bks-nist
Copy link
Contributor

@bks-nist bks-nist commented Jan 4, 2021

arrange() will fail for nonexistent vertices, so check that both
vertices exist first. Add doctests for both forms of haskey().

`arrange()` will fail for nonexistent vertices, so check that both
vertices exist first. Add doctests for both forms of `haskey()`.
@codecov
Copy link

codecov bot commented Jan 4, 2021

Codecov Report

Merging #12 (bd03ddd) into master (e361c86) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          217       217           
=========================================
  Hits           217       217           
Impacted Files Coverage Δ
src/metagraph.jl 100.00% <ø> (ø)
src/MetaGraphsNext.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e361c86...bd03ddd. Read the comment docs.

@bramtayl
Copy link
Collaborator

bramtayl commented Jan 4, 2021

Great! Thanks!!

@bramtayl bramtayl merged commit cf8b30d into JuliaGraphs:master Feb 18, 2021
@bramtayl
Copy link
Collaborator

Oops, forgot to merge sorry!

@bramtayl
Copy link
Collaborator

Do you need a new release?

@bks-nist
Copy link
Contributor Author

bks-nist commented Feb 18, 2021 via email

@bramtayl
Copy link
Collaborator

Ok! JuliaRegistries/General#30379 How do you like the package?

@bks-nist
Copy link
Contributor Author

bks-nist commented Feb 18, 2021 via email

@bramtayl
Copy link
Collaborator

I've had to make labeled_inneighbors and labeled_outneighbors for another package...I wish there was a less clunky way to move between codes and labels, maybe a macro or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants