Skip to content

Commit

Permalink
Merge pull request #12 from dlcole3/dc/fix-get_hyperedge-bug
Browse files Browse the repository at this point in the history
Fixed bug in `Graphs.add_edge!` extension
  • Loading branch information
jalving authored Sep 3, 2024
2 parents 2d72be7 + 16fb444 commit 6673275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphViews/hypergraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Graphs.add_edge!(hypergraph::HyperGraph, hypernodes::HyperNode...)
@assert length(hypernodes) > 1
hypernodes = Set(collect(hypernodes))
if Graphs.has_edge(hypergraph, hypernodes)
return get_hyperedge(hypernodes)
return get_hyperedge(hypergraph, hypernodes)
#return hypergraph.hyperedges[hypernodes]
else
index = Graphs.ne(hypergraph) + 1
Expand Down

0 comments on commit 6673275

Please sign in to comment.