Skip to content

Commit

Permalink
Fix add_vertex!
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Sep 12, 2024
1 parent 0ccccd3 commit 57869b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/states_registers_networks_getset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Base.iterate(r::Register, state=1) = state > length(r) ? nothing : (r[state],sta
## Networks

# Graph interface
Graphs.add_vertex!(net::RegisterNet, a, b) = add_vertex!(net.graph, a, b)
Graphs.add_vertex!(net::RegisterNet) = add_vertex!(net.graph)
Graphs.vertices(net::RegisterNet) = vertices(net.graph)
Graphs.edges(net::RegisterNet) = edges(net.graph)
Graphs.neighbors(net::RegisterNet, v) = neighbors(net.graph, v)
Expand Down
2 changes: 1 addition & 1 deletion test/test_jet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ rep = report_package("QuantumSavory";
@show length(JET.get_reports(rep))
@show rep

@test length(JET.get_reports(rep)) <= 34
@test length(JET.get_reports(rep)) <= 33
@test_broken length(JET.get_reports(rep)) == 0

0 comments on commit 57869b1

Please sign in to comment.