Can we read dot file in pydot

1,194 views
Skip to first unread message

Shivraj

unread,
May 7, 2012, 11:37:24 AM5/7/12
to pydot, kan...@gwu.edu
I have written a program that already creates dot files and I want to
know if there is a pydot function that will allow me to read those
dot files and then I could proceed to use pydot to create graph.
Many thanks for your help

Ero Carrera

unread,
May 7, 2012, 2:28:15 PM5/7/12
to py...@googlegroups.com

The module's function "graph_from_dot_file()" will return the graph read from a dot file:

  dot_graph = pydot.graph_from_dot_file('/path/to/file.dot')

--
ero



--
You received this message because you are subscribed to the Google Groups "pydot" group.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pydot+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pydot?hl=en.


Reply all
Reply to author
Forward
0 new messages