Read/Write

Summary

The readwrite module provides functions for reading and writing ASH model data in various formats, including CSV, JSON/JSONL, and HIF (Hypergraph Interchange Format). These functions facilitate the import and export of profiles, social hypergraphs, and ASH models, enabling easy data manipulation and sharing.

CSV

write_profiles_to_csv

param h:

read_profiles_from_csv

param path:

write_sh_to_csv

Write a list of timestamped hyperedges to a CSV file.

read_sh_from_csv

Read a list of timestamped hyperedges from a CSV file.

JSON / JSONL

write_profiles_to_jsonl

param a:

read_profiles_from_jsonl

Read a dictionary of node profiles from a JSONL file.

write_ash_to_json

Write an ASH object to a JSON file.

read_ash_from_json

Read an ASH object from a JSON file.

HIF

HIF (Hypergraph Interchange Format) is a file format designed for representing hypergraphs. It is particularly useful for storing and exchanging hypergraph data due to its simplicity and human-readability.

Read more about HIF here

write_hif

Write an ASH object to a HIF file.

read_hif

Read an ASH object from a HIF file.

Details