extend_network: Builds an extended network from a binary network

Description Usage Arguments Value Examples

View source: R/extend_network.R

Description

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

Usage

1
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

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

EGAD documentation built on Nov. 8, 2020, 8:31 p.m.