craneBipartite: Pertrubs the bipartite network with fixed node strength

View source: R/CRANE.R

craneBipartiteR Documentation

Pertrubs the bipartite network with fixed node strength

Description

Pertrubs the bipartite network with fixed node strength

Usage

craneBipartite(df, alpha = 0.1, beta = 0, getAdj = F, randomStart = F)

Arguments

df

Adjacency Matrix or Edge list

alpha

alpha paramter perturbs each edge weights

beta

beta parameter perturbs the strength of each node. Set this to 0 if you want nodes to have node strength identical to the orignal network.

getAdj

TRUE = this will return adjacency matrix instead of edge list

randomStart

FALSE = initialize the first row with completely random edge weights.

Value

edge list

Examples

## Not run: 

# Using Edge list as input
elist=craneBipartite(nonAng)
elist=craneBipartite(nonAng,alpha=0.3)

# Using Edge list as input and Adjcency Matrix as output
adjMatrix=craneBipartite(nonAng,alpha=0.1,getAdj=T)

# Using Edge list as input and Adjcency Matrix as output
A=elistToAdjMat(nonAng)
elist=craneBipartite(A)


## End(Not run)

netZoo/netZooR documentation built on June 8, 2024, 6:20 a.m.