Skip to content

Commit

Permalink
adds is_shifted
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydellavecchia committed Oct 29, 2024
1 parent 6a625a2 commit 901dc91
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion experimental/AlgebraicShifting/src/UniformHypergraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ function Base.:(==)(K :: UniformHypergraph, L :: UniformHypergraph)
end

raw""" Alexander dual, seen as bijection ``\binom{[n]}{k} \to \binom{[n]}{n-k}`` """
function alexander_dual(K :: UniformHypergraph)
function alexander_dual(K::UniformHypergraph)
return uniform_hypergraph(alexander_dual(simplicial_complex([[[i] for i in 1:K.n_vertices]; K.faces])), K.n_vertices - K.k)
end

is_shifted(K::UniformHypergraph) = is_shifted(simplicial_complex(K))
4 changes: 4 additions & 0 deletions src/Combinatorics/SimplicialComplexes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -710,3 +710,7 @@ end
function barycentric_subdivision(K::SimplicialComplex)
return SimplicialComplex(Polymake.topaz.barycentric_subdivision(pm_object(K)))
end

function is_shifted(K::SimplicialComplex)
return pm_object(K).SHIFTED
end
1 change: 1 addition & 0 deletions src/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ export is_right
export is_semiregular
export is_semisimple
export is_semistandard
export is_shifted
export is_simple, has_is_simple, set_is_simple
export is_simplicial
export is_singular
Expand Down

0 comments on commit 901dc91

Please sign in to comment.