How to use the graphviz.nohtml function in graphviz

To help you get started, we’ve selected a few graphviz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xflr6 / graphviz / examples / btree.py View on Github external
#!/usr/bin/env python
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
g.edge('node4:f0', 'node5:f1')

g.view()
github xflr6 / graphviz / examples / btree.py View on Github external
#!/usr/bin/env python
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
g.edge('node4:f0', 'node5:f1')

g.view()
github xflr6 / graphviz / examples / btree.py View on Github external
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
g.edge('node4:f0', 'node5:f1')

g.view()
github xflr6 / graphviz / examples / btree.py View on Github external
#!/usr/bin/env python
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
g.edge('node4:f0', 'node5:f1')
github xflr6 / graphviz / examples / btree.py View on Github external
#!/usr/bin/env python
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
github xflr6 / graphviz / examples / btree.py View on Github external
#!/usr/bin/env python
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
g.edge('node4:f0', 'node5:f1')

g.view()
github xflr6 / graphviz / examples / btree.py View on Github external
#!/usr/bin/env python
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
g.edge('node4:f0', 'node5:f1')

g.view()
github xflr6 / graphviz / examples / btree.py View on Github external
#!/usr/bin/env python
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
g.edge('node4:f0', 'node5:f1')
github xflr6 / graphviz / examples / btree.py View on Github external
#!/usr/bin/env python
# btree.py - http://www.graphviz.org/pdf/dotguide.pdf Figure 13

from graphviz import Digraph, nohtml

g = Digraph('g', filename='btree.gv',
            node_attr={'shape': 'record', 'height': '.1'})

g.node('node0', nohtml(' | G|'))
g.node('node1', nohtml(' | E|'))
g.node('node2', nohtml(' | B|'))
g.node('node3', nohtml(' | F|'))
g.node('node4', nohtml(' | R|'))
g.node('node5', nohtml(' | H|'))
g.node('node6', nohtml(' | Y|'))
g.node('node7', nohtml(' | A|'))
g.node('node8', nohtml(' | C|'))

g.edge('node0:f2', 'node4:f1')
g.edge('node0:f0', 'node1:f1')
g.edge('node1:f0', 'node2:f1')
g.edge('node1:f2', 'node3:f1')
g.edge('node2:f2', 'node8:f1')
g.edge('node2:f0', 'node7:f1')
g.edge('node4:f2', 'node6:f1')
g.edge('node4:f0', 'node5:f1')

g.view()