From dd90e5eb5351d66f567ce1ac620578551f136c2c Mon Sep 17 00:00:00 2001 From: GiggleLiu Date: Mon, 8 Jul 2024 00:24:36 +0800 Subject: [PATCH] fix show --- src/mmap.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mmap.jl b/src/mmap.jl index 5c13544..05d2deb 100644 --- a/src/mmap.jl +++ b/src/mmap.jl @@ -37,7 +37,7 @@ function Base.show(io::IO, mmap::MMAPModel) tc, sc, rw = contraction_complexity(mmap) println(io, "$(typeof(mmap))") println(io, "variables: $variables") - println(io, "query variables: $(map(x->x.eliminated_vars, mmap.clusters))") + println(io, "query variables: $(join(string.(setdiff(get_vars(mmap), keys(mmap.evidence))), ", "))") print_tcscrw(io, tc, sc, rw) end Base.show(io::IO, ::MIME"text/plain", mmap::MMAPModel) = Base.show(io, mmap)