This function finds the common neighbours between two nodes from a graph. It returns an empty vector of length 0 if there is no common neighbours.
1 | common_nbrs(graph, x, y)
|
graph |
A graph that is stored in an adjacency matrix. |
x |
A node in graph. |
y |
A node in graph that is different from x. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.