Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
pydot example 2 | |
@author: Federico Cáceres | |
@url: http://pythonhaven.wordpress.com/2009/12/09/generating_graphs_with_pydot | |
""" | |
import pydot | |
# this time, in graph_type we specify we want a DIrected GRAPH | |
graph = pydot.Dot(graph_type='digraph') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
pydot example 1 | |
@author: Federico Cáceres | |
@url: http://pythonhaven.wordpress.com/2009/12/09/generating_graphs_with_pydot | |
""" | |
import pydot # import pydot or you're not going to get anywhere my friend :D | |
# first you create a new graph, you do that with pydot.Dot() | |
graph = pydot.Dot(graph_type='graph') |