py-why / causal-learn

Causal Discovery in Python. It also includes (conditional) independence tests and score functions.

Home Page:https://causal-learn.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PC algorithm graph matrix syntax

kenneth-lee-ch opened this issue · comments

Hi,

I am quite new to this repo. I have a question regarding the documentation about the following syntax for the output in pc.py. Why would there be a need to distinguish i---j and i<->j in the output of CPDAG adjacency matrix? Would someone mind to explain?

                    cg.G.graph[i,j] = cg.G.graph[j,i] = -1 indicates i --- j,
                    cg.G.graph[i,j] = cg.G.graph[j,i] = 1 indicates i <-> j.