<< NARVAL_G_DiameterERT NARVAL NARVAL_G_Distance >>

NARVAL >> NARVAL > NARVAL_G_DisplayGraph

NARVAL_G_DisplayGraph

Display a network graph in respect with a defined metric per node.

Calling Sequence

[go] = NARVAL_G_DisplayGraph(g,bu,bo,bum,p)

Parameters

g :

network graph.

bu :

metric level of each network node used for the display.

bo :

maximal node border.

bum :

maximal metric level.

w :

window index.

go :

output graph.

Description

NARVAL_G_DisplayGraph displays the graph g in respect with a defined metric stored in the vector bu. For instance, it can be used to represent the network load state consisting of the current level of each router buffer at the time t. Thus if this metric is bounded by bum, then the nodes having this extremal value will be displayed with a border equal to bo. This function has been designed in order to show the congestion state of a network. Thus when a router buffer is inferior to one half of bum, it is displayed in black. Moreover the node border is proportional to its metric value. When it is included into the range [1/2,3/4]*bum, it is represented in blue. Else it is displayed in red when it is greater than 3/4*bum. The output graph go is shown in the graphical window w.

Examples

n=80;//network size
L=1000;//network square area side
dmax=100;//locality radius
[g]=NARVAL_T_LocalityConnex(n,L,dmax);//generation of a random topology in respect with the Locality method. 
bo=20;//maximal node border
bum=bo;//maximal metric level
w=1;//window index
nf=length(g.node_x);//real network size
bu=int((bo+1)*rand(nf,1));//generation of a random state  
[g]=NARVAL_G_DisplayGraph(g,bu,bo,bum,w);//application of NARVAL_G_DisplayGraph

Dependency

NARVAL_G_ShowGraph

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_G_DiameterERT NARVAL NARVAL_G_Distance >>