Description Usage Arguments Value References Examples
An amount of starting heat gets distribution using the
Laplacian matrix of a graph. Every iteration (or time interval) t
heat streams from the starting nodes into surrounding nodes.
1 2 3 4 5 6 7 | heat.diffusion(h0, graph, t = 0.5, ...)
## S4 method for signature 'numeric,matrix'
heat.diffusion(h0, graph, t = 0.5, ...)
## S4 method for signature 'matrix,matrix'
heat.diffusion(h0, graph, t = 0.5, ...)
|
h0 |
an |
graph |
an ( |
t |
time point when heat is measured |
... |
additional parameters |
returns the heat on every node as numeric vector
https://en.wikipedia.org/wiki/Laplacian_matrix
https://en.wikipedia.org/wiki/Heat_equation
1 2 3 4 5 6 7 8 |
setting diag of graph to zero
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.