Description Usage Arguments Author(s) Examples
Description: The function iteratePaths computes the shortest path between two groups of actors by iteratively removing the other groups.
1 | iteratePaths(net.object, attribute="orgsector", from.node.group="EDU", to.node.group="IGOV", stepwise.removal=1)
|
net.object |
The network object. Accepts both igraph and network objects |
iteration.type |
Defaults to "shortest.path" |
from.node.group |
Starting group from which to calculate the shortest path |
to.node.group |
Ending group from which to calculate the shortest path |
plot.type |
Select variable to plot. Accepts shortest.path or harmonic.path |
Marco T. Bastos
1 2 3 4 | # Not run:
net.object <- watts.strogatz.game(1, 300, 4, 0.01)
V(net.object)$group <- sample(rep(LETTERS[c(1,4,6,8,4,20)],1000),100)
iteratePaths(net.object, attribute="group", from.node.group="A", to.node.group="T", stepwise.removal=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.