xgi-org / xgi

CompleX Group Interactions (XGI) is a Python package for higher-order networks.
https://xgi.readthedocs.io
Other
180 stars 28 forks source link

YAML DiHypergraph #474

Open colltoaction opened 1 year ago

colltoaction commented 1 year ago

Hi!

I'm working on a project to add programming capabilities to YAML. I would like to integrate xgi and I implemented this POC:

https://github.com/yaml-programming/graphs/commit/0cc71cabf853f0c15a0d522ccc47532b7b7a4f16

This interpretation is derived from the YAML spec:

https://yaml.org/spec/1.2.2/#321-representation-graph

I see you have several converters so I wanted to get your feedback before moving forward. Do you think this interpretation is valid? Would you find YAML easy to use? Do you think advanced features such as tags, recursion, can help defining more complex graphs using this ubiquitous language?

Thanks!

nwlandry commented 12 months ago

Dear @colltoaction, thanks so much for raising this issue and so sorry for my delayed reply!! The XGI team is meeting tomorrow to discuss issues and pull requests and we will chat about your YAML suggestion. Thanks for your work on this!

colltoaction commented 11 months ago

I created a project with an interesting approach of bypassing PyYAML nodes module:

FYI I'm still interested in contributing higher level abstractions to xgi.