code: def to_dict(self) -> Dict:
          
          return {
              "name": self.name,
              "dateCreated": str(self.dateCreated),
              "variables": lmap(
                  lambda n: self.export_node(n), self.nodes(data=True)
              ),
              "timeStep": str(self.Δt),
              "edge_data": lmap(export_edge, self.edges(data=True)),
          }
docs: Export the CAG to a dict that can be serialized to JSON.