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

Find a good graph library for Erlang #42

Closed
4 tasks done
Tracked by #41
oubiwann opened this issue Jul 23, 2022 · 3 comments
Closed
4 tasks done
Tracked by #41

Find a good graph library for Erlang #42

oubiwann opened this issue Jul 23, 2022 · 3 comments

Comments

@oubiwann
Copy link
Contributor

oubiwann commented Jul 23, 2022

Goals:

  • Be able to perform basic graph theoretic operations: get neighbours, shortest path, reachability
  • Be able to generate visuals (probably only for debugging; maybe in-game? dunno ...)
  • Support file-based saves/exports
  • Support file-based loads/imports

It may be that we have to assemble from multiple bits ...

@oubiwann
Copy link
Contributor Author

I think I'm leaning toward digraph. It will have to be in a gen_server, though, due to this:

Only the process that created the digraph is allowed to update it.

@oubiwann
Copy link
Contributor Author

Over lunch, I have confirmed that the Erlang digraph library supports storing complex, nested data as the "label" on a graph, with the "vertex" of a new node being something as simple as an atom or a uuid string (list). I will update the ticket description with this decision.

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

No branches or pull requests

1 participant