<< NARVAL_G_Union NARVAL NARVAL_G_WCirclePlace >>

NARVAL >> NARVAL > NARVAL_G_VisParMod

NARVAL_G_VisParMod

Update all visualization parameters of a graph.

Calling Sequence

[go,f] = NARVAL_G_VisParMod(g,c,b,d,ew,ec,i)

Parameters

g :

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.

i :

window index.

go :

output network graph.

f :

handle of the graph window.

Description

NARVAL_G_VisParMod updates all visualization parameters of the graph g 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 displayed within the window of index i defined by its handle f. The output graph is go.

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);//graph loading
ind=1;//window index
f=NARVAL_G_ShowNodesEdges(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

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_Union NARVAL NARVAL_G_WCirclePlace >>