Description Usage Arguments Details Value Examples
get_transition_from_path
computes the transition matrix of a random walk following a
path
between the different levels of the input tripartite
graph.
1 | get_transition_from_path(tripartite, path)
|
tripartite |
A tripartite graph obtained by calling the |
path |
A vector of integers in { |
Note that the tripartite graph structure implemented in this package
stores in memory any computed transition matrix to avoid redundant computation
in the future. Hence, the first execution of get_transition_from_path
, or of
any other function that builds on it, can be much slower than latter calls.
The transition matrices are stored within a data.tree
in the input tripartite
variable (see tripartite$transitions
).
A matrix of floats in [0
,1
], with all lines summing to 1
,
giving the transition matrix of the random walk following the input path
.
1 2 3 4 | data (tripartite_example)
tripartite <- get_tripartite (data=tripartite_example)
get_transition_from_path (tripartite, c(2,1,2,3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.