Description Usage Arguments Details Value
View source: R/distance_to_diagonal.R
Generate matrix of distances from its own diagonal
1 |
n |
Number of vertices |
Distances are determined assuming that the list of vertices loops back to the start. If there are 4 vertices, the output will be: 0 1 2 1 1 0 1 2 2 1 0 1 1 2 1 0 The value at row 1 col 4 is 1 because vertex 4 is considered to be adjacent to vertex 1.
Matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.