Skip to content

Add Dor & Tasi PDAG completion algorithm#112

Merged
mschauer merged 3 commits into
masterfrom
dortarsi
Aug 7, 2023
Merged

Add Dor & Tasi PDAG completion algorithm#112
mschauer merged 3 commits into
masterfrom
dortarsi

Conversation

@mschauer

@mschauer mschauer commented Aug 6, 2023

Copy link
Copy Markdown
Owner

See https://ftp.cs.ucla.edu/pub/stat_ser/r185-dor-tarsi.pdf. The implementation marks the sinks which were already oriented in a bit vector and does not make a copy of the graph.

Comment thread src/pdag.jl Outdated
@mschauer mschauer merged commit e9bae30 into master Aug 7, 2023
@mschauer mschauer deleted the dortarsi branch August 7, 2023 09:11
@mwien

mwien commented Aug 7, 2023

Copy link
Copy Markdown
Collaborator

Nice implementation!

Going through vertices from low to high degree in line

for x in vertices(g)
is a potential optimization, but for sparse graphs it should not matter much in any case.

@mwien

mwien commented Aug 7, 2023

Copy link
Copy Markdown
Collaborator

I started the following WIP PR #113 which is somewhat related as it is about counting and listing the consistent extensions of a PDAG/CPDAG (in contrast to finding an arbitrary one).

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.

2 participants