View source: R/UpdateKlass-graph-navigate.R
count_neighbors | R Documentation |
Count the neighbors of a node.
count_neighbors(graph, node, mode)
graph |
A graph generated by |
node |
A node as returned by |
mode |
Whether to query outgoing (‘out’), incoming (‘in’) edges, or both types (‘all’). This is ignored for undirected graphs. |
A numeric vector of length one giving the number of neighbors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.