View source: R/structural.properties.R
graph.bfs | R Documentation |
graph.bfs()
was renamed to bfs()
to create a more
consistent API.
graph.bfs(
graph,
root,
mode = c("out", "in", "all", "total"),
unreachable = TRUE,
restricted = NULL,
order = TRUE,
rank = FALSE,
father = FALSE,
pred = FALSE,
succ = FALSE,
dist = FALSE,
callback = NULL,
extra = NULL,
rho = parent.frame(),
neimode
)
graph |
The input graph. |
root |
Numeric vector, usually of length one. The root vertex, or root vertices to start the search from. |
mode |
For directed graphs specifies the type of edges to follow. ‘out’ follows outgoing, ‘in’ incoming edges. ‘all’ ignores edge directions completely. ‘total’ is a synonym for ‘all’. This argument is ignored for undirected graphs. |
unreachable |
Logical scalar, whether the search should visit the
vertices that are unreachable from the given root vertex (or vertices). If
|
restricted |
|
order |
Logical scalar, whether to return the ordering of the vertices. |
rank |
Logical scalar, whether to return the rank of the vertices. |
father |
Logical scalar, whether to return the father of the vertices. |
pred |
Logical scalar, whether to return the predecessors of the vertices. |
succ |
Logical scalar, whether to return the successors of the vertices. |
dist |
Logical scalar, whether to return the distance from the root of the search tree. |
callback |
If not |
extra |
Additional argument to supply to the callback function. |
rho |
The environment in which the callback function is evaluated. |
neimode |
This argument is deprecated from igraph 1.3.0; use
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.