Description Usage Arguments Value
If the location and its neighbors, not including itself, are connected, then return the set containing the location and its neighbors; otherwise, return the empty set
1 | if_connected(distinct_neighbors, location, adjacency_matrix)
|
distinct_neighbors |
A |
location |
A location, preferably given as an integer. |
adjacency_matrix |
A boolean matrix, with element (i,j) set to TRUE if location j is adjacent to location i. |
A set
of the given location and the neighbors if they are
connected, else returns the empty set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.