Skip to content

[BUG] CGNN error: module 'networkx' has no attribute 'adj_matrix' #163

@JHPark9090

Description

@JHPark9090

Hello, I am trying to run CGNN model based on an undirected graph, using the "orient_directed_graph" function.
I am using the exact same codes presented in this example:
https://github.com/FenTechSolutions/CausalDiscoveryToolbox/blob/master/examples/example_cgnn.ipynb

Describe the bug
But whenever, I run the CGNN codes, I obtain this error, which indicates that the 'networkx' library has no attribute 'adj_matrix'.
image

I think it is maybe because the function 'adj_matrix' was deprecated in the 'networkx' library.

Below is the versions of my python and related libraries.
image

I am running my codes on GPUs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions