<< NARVAL_G_ShowGraphIncr NARVAL NARVAL_G_Spectrum >>

NARVAL >> NARVAL > NARVAL_G_ShowNodes

NARVAL_G_ShowNodes

Highlight a set of nodes in a graph.

Calling Sequence

[grm,f]=NARVAL_G_ShowNodes(gr,nodes,c,b,d,ind)

Parameters

gr :

network graph.

nodes :

vector of nodes.

c :

node colour.

b :

node border.

d :

node diameter.

ind :

window index.

grm :

output network graph.

f :

handle of the graph window.

Description

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

Dependency

NARVAL_G_OriginalGraph, NARVAL_G_ShowGraph

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_ShowGraphIncr NARVAL NARVAL_G_Spectrum >>