Description Usage Arguments Value Examples
View source: R/getReachableNodes.R
getReachableNodes is a support function for inferring reachable nodes that have some directed path to a node targetNode
.
This function uses Breadth-first search (BFS) algorithm.
1 | getReachableNodes(adjMat, targetNode)
|
adjMat |
is an adjacency matrix of a following network of which its elements are binary: zero for no edge, and one for having an edge. |
targetNode |
is a node in a graph that we want to find a set of nodes that can reach this target node via some paths. |
This function returns a set of node IDs followers
that have some directed path to a node targetNode
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.