DiagramSetWriter#
- class DiagramSetWriter(filename, notation='native', comment=None)#
Bases:
_BaseDiagramWriter
- __init__(filename, notation='native', comment=None)#
Initializes the writer.
- Parameters:
filename – Path to the output file.
notation – The diagram notation (‘dowker’, ‘gauss’, etc.).
comment – (Optional) A comment to add at the start of the file.
Methods
__init__
(filename[, notation, comment])Initializes the writer.
close
()Closes the file.
write_comment
(comment)write_diagram_set
(diagram_set)Converts and writes a set/list of diagrams to the file on a single line.
- close()#
Closes the file.
- write_diagram_set(diagram_set)#
Converts and writes a set/list of diagrams to the file on a single line.
- Parameters:
diagram_set – A set/list of diagrams.