Description Usage Arguments Details Value
This will typically be used in a loop to incrementally mutate a graph to become more lattice-like.
1 | attempt_latticization(x, d, allow_disconnect)
|
x |
An adjacency matrix or igraph object representing the graph to mutate. |
d |
A square matrix with as many rows and columns as vertices in
|
allow_disconnect |
A logical indicating where a mutation is allowed to
disrupt the connectedness of the network. If |
If allow_disconnect == TRUE, the procedure does not require
igraph. If FALSE, igraph is required.
A mutation will occur only under the following conditions:
1. The mutation will create new edges.
2. The mutation will create edges that correspond to smaller values in
d.
3. If allow_disconnect == FALSE, the mutation must not disrupt
network connectedness.
The test for connectedness is slow compared to the other tests and the rewiring operation itself.
A mutated version of x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.