You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.2 KiB

In [2]:
from graphviz import Digraph
# Create Digraph object
dot = Digraph()
In [3]:
# Add nodes 1 and 2
dot.node('1')
dot.node('2')

# Add edge between 1 and 2
dot.edges(['12'])
In [6]:
dot
Out[6]:
1 2
In [ ]: