Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to load/store collections of hypergraphs/simplicial complexes/dihypergraphs #20

Open
nwlandry opened this issue Feb 13, 2024 · 2 comments

Comments

@nwlandry
Copy link
Contributor

This tweet references a paper which contains a collection of datasets, where each dataset is the co-occurence of characters in a Shakespeare play. It should be possible to store a collection of datasets in a good way on XGI-DATA.

@nwlandry
Copy link
Contributor Author

An initial idea that I have is that each dataset has a type: "collection", "simplicial-complex", "hypergraph", or "dihypergraph", for example. If the dataset type is a collection, then the json contains metadata about the entire collection as well as information for accessing each dataset in the collection. This could be recursive; you could have collections of collections, for example. I picture the output of load_xgi_data(<collection>) being a dictionary or perhaps we define a data structure so that we can easily store collection-level data.

@nwlandry
Copy link
Contributor Author

If the output was a dictionary, it might look something like this:

{
    "collection-data": {"name": "hyperbard"},
    "datasets": [Hypergraph1, Hypergraph2,...]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant