Skip to content

Fix: use minimal_triang() in mpd.default() to ensure correct decomposition (#12)#13

Closed
Balance-H wants to merge 2 commits into
hojsgaard:masterfrom
Balance-H:codex/fix-bug-in-mpd.default-function
Closed

Fix: use minimal_triang() in mpd.default() to ensure correct decomposition (#12)#13
Balance-H wants to merge 2 commits into
hojsgaard:masterfrom
Balance-H:codex/fix-bug-in-mpd.default-function

Conversation

@Balance-H
Copy link
Copy Markdown

Hi Søren,

I have implemented the fix discussed in Issue #12.

The current mpd.default() uses triangulate() which can add redundant chords, potentially leading to incorrect prime subgraph merges. By switching to minimal_triang(), we ensure the decomposition remains mathematically sound for non-chordal graphs.

This change has been tested against the example provided in #12 and yields the correct decomposition.

@Balance-H Balance-H closed this by deleting the head repository May 1, 2026
@Balance-H
Copy link
Copy Markdown
Author

Sorry, I accidentally deleted my fork repository which caused this PR to close. I have recreated the fix in a new PR #14. Please check that one instead. Apologies for the confusion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant