<< NARVAL_G_Union NARVAL NARVAL_G_WCirclePlace >>

NARVAL >> NARVAL > NARVAL_G_VisParMod

NARVAL_G_VisParMod

Update all visualization parameters of a graph.

Calling Sequence

[grm,f]=NARVAL_G_VisParMod(gr,c,b,d,ew,ec,ind)

Parameters

gr :

network graph.

c :

vector with each node colour.

b :

vector with each node border.

d :

vector with each node diameter.

ew :

vector with each link width.

ec :

vector with each link colour.

ind :

window index.

grm :

output network graph.

f :

handle of the graph window.

Description

NARVAL_G_VisParMod updates all visualization parameters of the graph gr composed by n nodes and l links. New parameters are the nodes colour vector c of size 1xn, the nodes border vector b of size 1xn, the nodes diameter vector d of size 1xn, the links width vector ew of size 1xl and the links colour vector ec of size 1xl. The updated graph is diplayed in the window of index ind with its handle f. The output graph is grm.

Examples

[path]=NARVAL_F_NARVALPath();//path to NARVAL module
path=path+'/demos/';//folder path
name='topo_20.topo';//file name
Lxmin=100;
Lxmax=900;
Lymin=100;
Lymax=900;
[g]=NARVAL_T_UploadTopology(path,name,Lxmin,Lxmax,Lymin,Lymax);
ind=1;
f=NARVAL_G_ShowGraph(g,ind);
c=[1 2 2 2 5 5 5 5 6 6 6 6 6];//visualization parameters 
b=[20 15 15 15 10 10 10 10 5 5 5 5 5];
d=[60 50 50 50 40 40 40 40 30 30 30 30 30];
ew=[5 5 5 4 4 4 4 4 3 3 3 3 3 3 3 3 3 2 2 2];
ec=[1 1 1 2 2 2 2 2 5 5 5 5 5 5 5 5 5 6 6 6];
i2=2;//window index
[grm,f2]=NARVAL_G_VisParMod(g,c,b,d,ew,ec,i2);//application of NARVAL_G_VisParMod
grm

Dependency

NARVAL_G_ShowGraph

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_Union NARVAL NARVAL_G_WCirclePlace >>