<< NARVAL_G_SaveGraph NARVAL NARVAL_G_ShowGraph >>

NARVAL >> NARVAL > NARVAL_G_ShowEdges

NARVAL_G_ShowEdges

Highlight a set of edges in a graph.

Calling Sequence

[grm,f]=NARVAL_G_ShowEdges(gr,edges,c,w,ind)

Parameters

gr :

network graph.

edges :

vector of edges.

c :

edge colour.

w :

edge width.

ind :

window index.

grm :

output network graph.

f :

handle of the graph window.

Description

NARVAL_G_ShowEdges highlights the set of edges edges of the graph gr. Edges are displayed with the colour c and width w 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 
w=5;
i2=2;//window index
edges=[1 5 13];
[gm,f2]=NARVAL_G_ShowEdges(g,edges,c,w,i2);//application of NARVAL_G_ShowEdges 
gm

Dependency

NARVAL_G_OriginalGraph, NARVAL_G_ShowGraph

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_SaveGraph NARVAL NARVAL_G_ShowGraph >>