<< NARVAL_G_ShowGraph NARVAL NARVAL_G_ShowNodes >>

NARVAL >> NARVAL > NARVAL_G_ShowGraphIncr

NARVAL_G_ShowGraphIncr

Display an updated graph.

Calling Sequence

[f]=NARVAL_G_ShowGraphIncr(g,f)

Parameters

g :

updated network graph.

f :

handle of the graph window.

Description

NARVAL_G_ShowGraphIncr updates the visualization of the graph g in the window defined by its handle f. Topology must be the same, e.g. position of nodes and edges stay at the same place.

Examples

[path]=NARVAL_F_NARVALPath();//path to NARVAL module
path=path+'/demos/';//folder path
load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables
load(path+'topo_100.graph','g');//loading of the network graph
i1=1;
i2=2;
f1=NARVAL_G_ShowGraph(g,i1);
f2=NARVAL_G_ShowGraph(g,i2);
bo=20;//maximal node border
bum=bo;//maximal metric level
nf=length(g.node_x);//network size
gl=length(g.head);//quantity of network links
bu=int((bo+1)*rand(1,nf));//generation of a random buffer state
pl=int((gl+1)*rand());
lfo=int((gl)*rand(pl,1))+1;//generation of packets along lfo links
[go]=NARVAL_I_NetworkState(g,gl,lfo,bu,bo,bum);//modification of the network
f2.pixmap='on';
[f2]=NARVAL_G_ShowGraphIncr(go,f2);//application of NARVAL_G_ShowGraphIncr
show_pixmap();
f2.pixmap='off';

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_ShowGraph NARVAL NARVAL_G_ShowNodes >>