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

API discussions #4

Open
cdunn2001 opened this issue Feb 16, 2016 · 1 comment
Open

API discussions #4

cdunn2001 opened this issue Feb 16, 2016 · 1 comment

Comments

@cdunn2001
Copy link
Contributor

The API may evolve. We can bounce ideas around here.

@cdunn2001
Copy link
Contributor Author

One idea is to use [Node, Edge] generics everywhere. Then, users can apply whatever attributes they see fit. In C++, templates compile slowly, but Nim compiles generics fast. So I am leaning toward this.

Another idea is to use integers for nodes and let the user keep a hash-table. That's a bit less convenient (though less noisy) but extremely efficient. It would also keep our library simple, which is important for any open-source project. Integer-length might be a compile-time option.

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