mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 12:23:32 +01:00
Correct graphiz format
This commit is contained in:
parent
590a1ceef5
commit
99848583ea
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user