Skip to content

Commit

Permalink
Update trollsched/graph.py
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Raspaud <[email protected]>
  • Loading branch information
adybbroe and mraspaud authored Dec 4, 2024
1 parent 754c607 commit bdc004c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion trollsched/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ def load(self, filename):
self.vertices = np.arange(self.order)

def export(self, filename="./sched.gv", labels=None):
"""Dot sched.gv -Tpdf -otruc.pdf."""
"""Export the schedule to gv format for visualization.
To generate a pdf out of it::
dot sched.gv -Tpdf -otruc.pdf.
"""
with open(filename, "w") as fd_:
fd_.write('digraph schedule { \n size="80, 10";\n center="1";\n')
for v1 in range(1, self.order - 1):
Expand Down

0 comments on commit bdc004c

Please sign in to comment.