Skip to content

Commit e042b1b

Browse files
author
David Cole
committed
Fixed dimension to be length of hyperedges
1 parent acebcf4 commit e042b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph_representations/hypergraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function LightGraphs.incidence_matrix(hypergraph::HyperGraph)
129129
end
130130
V = Int.(ones(length(I)))
131131
m = length(hypergraph.vertices)
132-
n = m
132+
n = length(hypergraph.hyperedge_map)
133133
return SparseArrays.sparse(I, J, V, m, n)
134134
end
135135

0 commit comments

Comments
 (0)