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

 

 

 

 

 
 
 
 


displayTopology()

Visualize network topology, set xy-components and ouput field in node structure-array.

Syntax

node = displayTopology(node,connectionMatrix,optionString)
node = displayTopology(node,connectionMatrix,optionString,saveFlag)


Description

displayTopology(node,connectionMatrix,optionString) displays the network topology defined by connectionMatrix and updates the x and y components in the node structure-array. optionString must be set to 'arrow' or 'line' and defines whether the network connections are represented as arrows or as lines. For networks with nodes > 50 it is recommended to use 'line'. Furthermore, the output field in the node structure-array is updated.

displayTopology(node,connectionMatrix,optionString,saveFlag) displays the network topology defined by connectionMatrix and updates the x and y components in the node structure-array. optionString must be set to 'arrow' or 'line' and defines whether the network connections are represented as arrows or as lines. For networks with nodes > 50 it is recommended to use 'line'. Furthermore, the "output" field in the node structure-array is updated. If saveFlag is set, the figure is saved to the disk. 

Input:
node - 1 x n structure-array containing node information
connectionMatrix - n x n adjacent matrix (defined as in graph theory)
optionString - must be set to either 'arrow' or 'line'
saveFlag - (Optional) Flag: 1 - Figure will be saved to disk 0 - no saving

Output: 
node - 1 x n structure-array containing updated node information (output field)

Example

Using the Toolbox - CA: an application

See also

saveFigure(), arrow(), bsn()

 

 
 
 
      Christian Schwarzer - EPFL