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

Feature Request: Hypergraphs #60

Open
2 tasks
FlorianWendelborn opened this issue Dec 12, 2023 · 1 comment
Open
2 tasks

Feature Request: Hypergraphs #60

FlorianWendelborn opened this issue Dec 12, 2023 · 1 comment

Comments

@FlorianWendelborn
Copy link

FlorianWendelborn commented Dec 12, 2023

Is your feature request related to a problem? Please describe.

Right now there doesn’t seem to be any implementation of a hypergraph on NPM. It would be great if it was as easy to work with hypergraphs as it is with ordinary graphs.

image

Hypergraphs can be useful for various problems. In my specific case, I’m interested in computing all valid combinations of a list of possible actions a player could take where each action has n inputs and n outputs. (E.g. input: 100 coins + 1 sword, output: 1 upgraded sword; real interactions are more complicated, and potentially cyclic)

Describe the solution you'd like

  • Support for Directed Hypergraphs
  • Support for Undirected Hypergraphs (not important to me personally but I think it makes sense to support both)

Describe alternatives you've considered

N/a

Additional context

Wikipedia: Hypergraph

Also, thank you for making this project. It seems well tested and feature complete and TypeScript needs more libraries like this.

@zrwusa
Copy link
Owner

zrwusa commented Dec 13, 2023

Thank you for your sincere advice. I think we can incorporate Hypergraph into our planning.

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

2 participants