A.mult | R Documentation |
When applying the definition of matrix multiplication to an adjacency matrix
\mathbf{A}
, the i,j
entry in \mathbf{A}^k
will give the number of paths in the graph from node i
to node j
of length k
.
A.mult(G, power, text.summary = TRUE)
G |
Graph object of class |
power |
The power to rise the adjacency matrix to. |
text.summary |
Logical. If |
Returns either a character vector of paths of a specified length or, if text.summary = TRUE
, the adjacency matrix raised to a specified power.
Ken Aho
kon_full <- streamDAGs("konza_full")
A.mult(kon_full, power = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.