FenTechSolutions / CausalDiscoveryToolbox

Package for causal inference in graphs and in the pairwise settings. Tools for graph structure recovery and dependencies are included.
https://fentechsolutions.github.io/CausalDiscoveryToolbox/html/index.html
MIT License
1.08k stars 198 forks source link

Help! #152

Closed uzumaki-sina closed 1 year ago

uzumaki-sina commented 1 year ago

I need to create connectivity matrix from pc algorithm but i dont know how to work the output format of the toolbox. any help or tips?

diviyank commented 1 year ago

Hello ! It's a networkx Graph. Check nx.adjacency_matrix(output).to_dense()

More details here : https://networkx.org/documentation/stable/reference/generated/networkx.linalg.graphmatrix.adjacency_matrix.html#adjacency-matrix

Hope this helps