Description Usage Arguments Value
Performs a breadth first search of node_matrix to find a path from node 'from' to node 'to'. If a path is found, returns path and distance.
1 | breadth_first(node_matrix, from, to)
|
node_matrix |
A square matrix where cells are 1 if there is an edge between the row cell and the column cell and 0 otherwise |
from |
The origin node |
to |
The destination node |
A list with the keys 'status' (TRUE if there is a path, FALSE if not), and if there is a path, also 'distance' and 'path'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.