10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-22 20:33:39 +01:00

Correct graphiz format

This commit is contained in:
Thomas Applencourt 2017-01-26 11:13:23 -06:00
parent 590a1ceef5
commit 99848583ea

View File

@ -57,10 +57,10 @@ def main():
if command_line.do_graph: if command_line.do_graph:
comm_world.t_filename_parsed_text # Initialize entity need. Dirty I know. comm_world.t_filename_parsed_text # Initialize entity need. Dirty I know.
print 'graph { ' print 'digraph { '
for name,entity in comm_world.d_entity.items(): for name,entity in comm_world.d_entity.items():
if entity.needs: if entity.needs:
print ' {0} -> {1}'.format(name, ' '.join(entity.needs)) print ' %s -> { %s } ' % (name, ' ; '.join(entity.needs))
print '}' print '}'
return return