-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting graph structure #129
Comments
Hi @qvhaelen, We currently don't have a built-in export method. However, since import networkx as nx
from causalnex.structure import StructureModel
# Create a model
sm = StructureModel()
sm.add_edges_from([
('A', 'C'),
('B', 'C'),
])
# Save the model into pygraphviz's dot format
nx.drawing.nx_pydot.write_dot(sm, 'graph.dot') To export to other formats, you can find out more from |
Dear @oentaryorj thank you for the information. Yes I am already using the networkx functionalities so I guess it should be ok to export graph using networkx exprot function without relying on pygraphiz |
Hello,
I would like to know if once the graph has been generated using DAGClassifier , is there a built-in mehod to export the structure of the graph, (edges, weight, nodes) in a column format so it can be visaulized using another custom tools?
Thank you
The text was updated successfully, but these errors were encountered: