<< NARVAL_G_ShowGraphIncr NARVAL NARVAL_G_ShowNodesEdges >>

NARVAL >> NARVAL > NARVAL_G_ShowNodes

NARVAL_G_ShowNodes

Highlight a set of nodes in a graph.

Calling Sequence

[go,f] = NARVAL_G_ShowNodes(g,n,c,b,d,i)

Parameters

g :

network graph.

n :

vector of nodes.

c :

node colour.

b :

node border.

d :

node diameter.

i :

window index.

go :

output network graph.

f :

handle of the graph window.

Description

NARVAL_G_ShowNodes highlights the set of nodes n of the graph g. Nodes are displayed with the colour c, the border b and the diameter d within the window of index i defined by its 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);//graph visualization
c=5;//visualization parameters: color, border and diameter 
b=10;
d=50;
i2=2;//window index
nodes=[1 2 6 10];//list of nodes
[gm,f2]=NARVAL_G_ShowNodes(g,nodes,c,b,d,i2);//application of NARVAL_G_ShowNodes

Dependency

NARVAL_G_OriginalGraph, 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_ShowGraphIncr NARVAL NARVAL_G_ShowNodesEdges >>