graph

abjad.top.graph.graph(argument, image_format='pdf', layout='dot', graph_attributes=None, node_attributes=None, edge_attributes=None, **keywords)

Graphs argument.

Graphs staff:

>>> staff = abjad.Staff("c'4 d' e' f'")
>>> abjad.graph(staff) 

Graphs rhythm tree:

>>> rtm_syntax = '(3 ((2 (2 1)) 2))'
>>> parser = abjad.rhythmtrees.RhythmTreeParser()
>>> rhythm_tree = parser(rtm_syntax)[0]
>>> abjad.graph(rhythm_tree) 

Opens image in default image viewer.

Return type:None