eff_dist
computes the effective distance between all nodes in the network
eff_dist(p) eff_dijkstra(p, start) spd_dijkstra(p, start)
p | numeric matrix, representing the transition probability matrix for the network graph |
---|---|
start | start of path |
A numeric matrix, representing the effective distance between all nodes in the network graph.
Dijkstra, E. W. (1959): A note on two problems in connexion with graphs. Numerische Mathematik, 1, 269-271. <DOI: 10.1007/BF01386390>
Brockmann, D. and Helbing, D. (2013): The hidden geometry of complex, network-driven contagion phenomena. Science, 342, 1337-1342. <DOI: 10.1126/science.1245200>
Manitz, J. (2014): Statistical Inference for Propagation Processes on Complex Networks. Ph.D. thesis, Georg-August-University Goettingen. Verlag Dr. Hut, ISBN 978-3-8439-1668-4. Available online: http://ediss.uni-goettingen.de/handle/11858/00-1735-0000-0022-5F38-B.
#>#> #>#>#> #>#>#> #>#> Computing the effective distance between 51 nodes: #> 1...................................................done# compute shortest path distance data(ptnAth) athnet <- as_adj(ptnAth, sparse=FALSE) spd <- spd_dijkstra(athnet, start=1) # compare calculations with the one from igraph spd_igraph <- igraph::distances(ptnAth, v=1, algorithm='dijkstra') all(spd[[1]] == spd_igraph)#> [1] TRUE