Learn R Programming

EGAD (version 1.0.3)

extend_network: Builds an extended network from a binary network

Description

The function extends a binary network by using the inverse of the path length between nodes as a weighted edge

Usage

extend_network(net, max = 6)

Arguments

net
matrix binary and symmetric
max
numeric maximum number of jumps

Value

ext_net matrix dense and symmetric

Examples

Run this code
net <- matrix( sample(c(0,1),36, replace=TRUE), nrow=6,byrow=TRUE)
ext_net <- extend_network(net)


Run the code above in your browser using DataLab