Pattern Text Format¶
graphqomb.ptn_format module¶
Pattern text format (.ptn) module.
This module provides:
dump: Write a pattern to a .ptn file or string.load: Read a pattern from a .ptn file or string.dumps: Serialize a pattern to a .ptn format string.loads: Deserialize a pattern from a .ptn format string.
- graphqomb.ptn_format.dump(pattern, file)[source]¶
Write a pattern to a .ptn file.
- Parameters:
pattern (
Pattern) – The pattern to write.file (
pathlib.Path|str) – The file path to write to.