Description Usage Arguments Details Value
This helper function retrieves the set of shortest paths connecting all
possible dyads that can be formed from a single source
vertex to a
vector of destination
vertices, for subsequent use by
compute_targbetween
.
1 | one_to_many(network, source, destination, mode)
|
network |
An |
source |
A single vertex or a vector of vertices in |
destination |
A vector of one or more vertices in |
mode |
A character value indicating the |
This function should not be called directly. Instead, provide the network
and the set of dyads that you want to analyze to
targbetween_alldyads
. That function calls
one_to_many
as needed.
Note that other functions that call one_to_many
may reverse
source
and destination
in order to identify the shortest paths
from many source vertices to a single destination vertex. When this is done
for directed networks, the mode
argument is set to "in"
rather
than "out"
as its value. (If the network is treated as undirected in
the analysis, mode = "all"
regardless of whether source
and
destination
are reversed.)
A list of shortest paths from the source
vertex to each of the
destination
vertices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.