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

Network refinement helper #46

Closed
johnlees opened this issue Jan 13, 2021 · 1 comment
Closed

Network refinement helper #46

johnlees opened this issue Jan 13, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@johnlees
Copy link
Member

For network refinement, some efficient code which:

  • Takes a (sorted) array of boundary positions.
  • For each boundary position, gives the extra included edges as a list of (i, j).

These could then be added in sequence in network refinement which might make it faster.

Perhaps the fastest way to do this would be to:

  • Sort the values by their distance from the first boundary.
  • Iterate through until next distance exceeded.
  • While iterating, pass original distance index through lookup functions to get (i, j).

Or it may be easier to simply apply the inside boundary function at every array value, and then map the passing distance indices through the lookup functions.

@johnlees
Copy link
Member Author

Closed by #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant