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'.

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.

I am running my codes on GPUs.