extend_network {EGAD} | R Documentation |
The function extends a binary network by using the inverse of the path length between nodes as a weighted edge
extend_network(net, max = 6)
net |
matrix binary and symmetric |
max |
numeric maximum number of jumps |
ext_net matrix dense and symmetric
net <- matrix( sample(c(0,1),36, replace=TRUE), nrow=6,byrow=TRUE) ext_net <- extend_network(net)