Function Reference
Initialisation | Evolution | Statistics | Data Management
 
Introduction
RBN Overview
Using the Toolbox
Function Reference
Research/Gallery
Download
Literature/Links
Contact
 

 

 

 

 

 

 
 
 
 


bnKav()

Generate network with n nodes and at average kavdesired incoming connections per node. If it is not possible to build a network with exactly these parameters, then a network with n nodes and kavreal < kavdesired is built.

Syntax

[nodeUpdated, kavreal] = bnKav(n, kavdesired)


Description

bnKav(n,kavdesired) generates network with n nodes and at average kavdesired incoming connections per node.

Input:
n - Number of nodes
kavdesired - Average number of connections per node (desired)

Output: 
node - node-structure-array
kavreal - Average number of connections per node (found by algorithm)

Example

Let's create a network with N=14 nodes and an average connectivity of K = 3.3. However,
it might be possible that for N=14 there's no configuration of incoming connections that 
yields the desired average connectivty.
In fact:

>> [nodes, kavreal] = bnKav(14,3.3)

returns

kavreal = 3.2857

See also

bsn(), frozenComp()

 

 
 
 
      Christian Schwarzer - EPFL