Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
scheinerman committed Aug 6, 2024
1 parent 74e7f37 commit f67a2cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ function linear_extension(p::Poset)::Poset
return Poset(d)
end

import Graphs: induced_subgraph
export induced_subposet
"""
induced_subposet(p::Poset, vlist::AbstractVector{T}) where {T<:Integer}
Create a new poset from `p` generated by the vertices in `vlist`.
"""
function induced_subposet(p::Poset, vlist::AbstractVector{T}) where {T<:Integer}
g, m = induced_subgraph(p.d, vlist)
q = Poset(g)
Expand Down

0 comments on commit f67a2cb

Please sign in to comment.