You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from causallearn.utils.GraphUtils import GraphUtils
22
22
pdy = GraphUtils.to_pydot(graph)
23
23
pdy.write_png('simple_test.png')
24
24
25
-
Visualization using pydot is recommended. If specific label names are needed, please refer to this `usage example <https://github.com/cmu-phil/causal-learn/blob/main/tests/TestGraphVisualization.py>`_ (e.g., 'cg.draw_pydot_graph(labels=["A", "B", "C"])' or 'GraphUtils.to_pydot(cg.G, labels=["A", "B", "C"])').
25
+
Visualization using pydot is recommended. If specific label names are needed, please refer to this `usage example <https://github.com/cmu-phil/causal-learn/blob/main/tests/TestGraphVisualization.py>`_.
26
26
27
27
28
28
Parameters
@@ -53,7 +53,7 @@ For detailed usage, please kindly refer to its `usage example <https://github.co
53
53
54
54
Returns
55
55
-------------------
56
-
**graph**: a CausalGraph object, where graph.graph[j,i]=1 and graph.graph[i,j]=-1 indicates i --> j; graph.graph[i,j] = graph.graph[j,i] = -1 indicates i --- j; graph.graph[i,j] = graph.graph[j,i] = 1 indicates i <-> j; graph.graph[j,i]=1 and graph.graph[i,j]=2 indicates i o-> j.
56
+
**G**: a CausalGraph object, where G.graph[j,i]=1 and G.graph[i,j]=-1 indicates i --> j; G.graph[i,j] = G.graph[j,i] = -1 indicates i --- j; G.graph[i,j] = G.graph[j,i] = 1 indicates i <-> j; G.graph[j,i]=1 and G.graph[i,j]=2 indicates i o-> j.
57
57
58
58
**edges**: list. Contains graph's edges properties. If edge.properties have the Property 'dd', then there is no latent confounder. Otherwise, there might be latent confounders. If edge.properties have the Property 'nl', then it is definitely direct. Otherwise, it is possibly direct.
0 commit comments