the direct of two nodes in adjacency matrix which is result of ICALiNGAM
how to get the right graph direction between tow nodes? for example:
causal_order_ = [3,0,2,1,4,5] adjacency_matrix = [[0, 0, 0, 3, 0, 0] [3, 0, 2, 0, 0, 0] [0, 0, 0, 6, 0, 0] [0, 0, 0, 0, 0, 0] [8, 0, -1, 0, 0, 0] [4, 0, 0, 0, 0, 0]] how can I get the right directed graph?
thank you
Hi, here is the graph corresponding to your adjacency_matrix:
i understood how you did it, but do u have a method which generates the graph rom the adjacency matrix?
For LiNGAM-based methods, you may use
from causallearn.search.FCMBased.lingam.utils import make_dot make_dot(model.adjacency_matrix_, labels=labels)