API¶
gtravyl Package¶
Functions¶
|
|
|
Neighbor indices are computed under the standard Euclidean distance. |
|
Pop the smallest item off the heap, maintaining the heap invariant. |
|
Push item onto heap, maintaining the heap invariant. |
|
Checks if the candidate point actually exists in the grid. |
|
Return the Moore neighborhood of a particular cell in the grid. |
|
|
|
Does not wrap indices. |
|
Checks if a value is not 1. |
|
Find shortest path from |
|
Return the square root of x. |
|
Every neighbor is |
|
Return the von Neumann neighborhood of a particular cell in the grid. |
|
Wraps the cell values around. So, if you start at (0, 0) and go left you end up at (x dimension, 0) :param ind: The index to potentially modify (that is, wrap it if applicable). :param dim: Dimensions of the grid. |