Skip to content

Commit

Permalink
Fixed dimension to be length of hyperedges
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cole committed Dec 12, 2023
1 parent acebcf4 commit e042b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph_representations/hypergraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function LightGraphs.incidence_matrix(hypergraph::HyperGraph)
end
V = Int.(ones(length(I)))
m = length(hypergraph.vertices)
n = m
n = length(hypergraph.hyperedge_map)
return SparseArrays.sparse(I, J, V, m, n)
end

Expand Down

0 comments on commit e042b1b

Please sign in to comment.