Description Usage Arguments Details Value
This helper function retrieves the set of shortest paths connecting each dyad
of vertices specified in a two-column data.frame (column 1 = source,
column 2 = destination), for subsequent use by
compute_targbetween
.
1 | assorted_dyads(network, dyads, directed = FALSE)
|
network |
An |
dyads |
A two-column data.frame, with two vertices in each row, indicating the dyads to be considered in the analysis |
directed |
A boolean value indicating whether the |
This function should not be called directly. Instead, provide the
network
and the set of dyads
that you want to analyze to
targbetween
. That function calls assorted_dyads
as needed.
WARNING: This function may be extremely slow when the number of rows in
dyads
is large, as all_shortest_paths
must be
separately run for each individual dyad. If all source vertices correspond to
the same set of destination
vertices,
targbetween_alldyads
should be used, as this calls
one_to_many
, instead of using targbetween
to call
assorted_dyads
. The targbetween_alldyads
function
takes a vector of source
vertices and a vector of destination
vertices as arguments, and it is either length(source)
or
length(destination)
times faster than targbetween
,
whichever is larger.
A list of shortest paths between the pairs of vertices indicated in
each row of dyads
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.