Description Usage Arguments Value Examples
return the adjacency matrix of expMat connecting neighbors up to numSteps away.
1 | shortestPathDistance(AdjMat, numSteps = 0)
|
AdjMat |
An adjacency Matrix (0/1). |
numSteps |
The maximum number of edges between pairs of nodes. If numSteps=0, returns the input matrix. numSteps=1 adds neighbors of direct neighbors, etc. |
A Matrix containing the shortset paths between nodes i and j
1 2 3 4 5 | data(SIM)
Sres <- edgefinder(SIM, ttl = "hub network")
AdjMat1 <- shortestPathDistance(Sres$AdjMat, numSteps=50)
max(AdjMat1)
Matrix::image(AdjMat1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.