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

Use a DAG for territory aliases #6

Open
kdeldycke opened this issue Jan 26, 2015 · 1 comment
Open

Use a DAG for territory aliases #6

kdeldycke opened this issue Jan 26, 2015 · 1 comment

Comments

@kdeldycke
Copy link
Contributor

Territory code aliases implementation is quite a mess, and to make it easier to maintain, use a directed acyclic graph to store the subdivision / country relationship as well as aliases.

With such a structure, we can easily solve #5 and check for stupid cycles in unit tests.

I think I'll leverage the NetworkX package to do so.

@kdeldycke kdeldycke self-assigned this Jan 26, 2015
@kdeldycke
Copy link
Contributor Author

This might help solve once for all unsupported edge-cases. See: 5b589f8 and fe73027 .

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