Description Usage Arguments Details
View source: R/calculate_cycle_length.R
This function calculate the length of a shortest cycle between two nodes. If these nodes don't form a cycle, the function returns length 0.
1 | calculate_cycle_length(graph, x, y, connected = FALSE)
|
graph |
A graph that is stored in an adjacency matrix. |
x |
A node. |
y |
A node. |
The function has dependency on igraph.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.