Data Processor Module
- class chipfiring.CFDataProcessor.CFDataProcessor[source]
Bases:
objectA class to handle data input and output for chip-firing objects in various formats like .txt, .json, and .tex.
- to_json(cf_object, file_path: str)[source]
Writes a CF object to a .json file.
- Parameters:
cf_object – The CF object to serialize (e.g., CFGraph, CFDivisor).
file_path (str) – The path to save the .json file.