View source: R/structural.properties.R
get.all.shortest.paths | R Documentation |
get.all.shortest.paths()
was renamed to all_shortest_paths()
to create a more
consistent API.
get.all.shortest.paths(
graph,
from,
to = V(graph),
mode = c("out", "all", "in"),
weights = NULL
)
graph |
The graph to work on. |
from |
Numeric constant, the vertex from or to the shortest paths will be calculated. Note that right now this is not a vector of vertex ids, but only a single vertex. |
to |
Numeric vector, the vertices to which the shortest paths will be
calculated. By default it includes all vertices. Note that for
|
mode |
Character constant, gives whether the shortest paths to or from
the given vertices should be calculated for directed graphs. If |
weights |
Possibly a numeric vector giving edge weights. If this is
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.