6.4.1. pywhy_graphs.export.graph_to_tetrad#

pywhy_graphs.export.graph_to_tetrad(G, filename: str)[source]#

Convert a pywhy causal graph to a tetrad text file.

Parameters:
Ginstance of causal graph

Causal graph.

filenamestr

Output text file to write tetrad formatted graph.