Skip to contents

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

if (FALSE) {

# 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)

}