GithubHelp home page GithubHelp logo

Comments (2)

kunwuz avatar kunwuz commented on September 26, 2024

Hi, thanks for your interest. It is possible to get the adjacency matrix for PC & FCI as mentioned in the doc as follows:
image

And for FCI (G.graph[i,j]):

image

I don't think there is an existing function for the first point, but I believe transferring the graph class in causal-learn to networkx-like graphs using pywhy-graph might be promising.

from causal-learn.

asha24choudhary avatar asha24choudhary commented on September 26, 2024

Thank you, I found that the causal graph object returned by PC can be visualized by networkx as shown in this doc, however, when I try to do the same using the Graph G returned by FCI it is not possible as the graph class is different in this case. The object returned by PC is 'causallearn.graph.GraphClass.CausalGraph', however, in case of FCI as we get two outputs (graph & edges), the graph object returned by FCI is completely different and I cannot visualise it. I don't know which python script should I edit to define the 'G.to_nx_graph()' method as shown here, that can be used for FCI. Thank you in advance!

from causal-learn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.