graph

topleveltools.graph(expr, image_format='pdf', layout='dot', graph_attributes=None, node_attributes=None, edge_attributes=None, **kwargs)

Graphs expr with graphviz and opens resulting image in the default image viewer.

>>> rtm_syntax = '(3 ((2 (2 1)) 2))'
>>> rhythm_tree = rhythmtreetools.RhythmTreeParser()(rtm_syntax)[0]
>>> print(rhythm_tree.pretty_rtm_format)
(3 (
    (2 (
        2
        1))
    2))
>>> topleveltools.graph(rhythm_tree) 

Returns none.