Description Usage Arguments Value

Returns a `set`

of `set`

s, each set of the latter type containing
the location itself and zero or more of its neighbors, if they are connected.

1 | ```
connected_neighbors(neighbors, adjacency_matrix)
``` |

`neighbors` |
A vector of neighbors to a location, the first element of the vector being the specific location, and the other elements its other nearest neighbors. Locations should be encoded as integers. |

`adjacency_matrix` |
A boolean matrix, with element |

Returns a `set`

of `set`

s, each set of the latter type
containing the location itself and zero or more of its neighbors, if they
are connected.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.