<< NARVAL_G_CoulombForce NARVAL NARVAL_G_DeleteNodes >>

NARVAL >> NARVAL > NARVAL_G_DeleteEdges

NARVAL_G_DeleteEdges

Remove a set of edges from a graph.

Calling Sequence

[go] = NARVAL_G_DeleteEdges(g,e)

Parameters

g :

graph.

e :

index vector of edges.

go :

output graph.

Description

NARVAL_G_DeleteEdges removes the set of edges whose indexes belong to e inside the graph g. The output graph is stored in 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);
ind=1;//window index
f=NARVAL_G_ShowEdgesIndex(g,ind);//graph visualization
i2=2;//window index
edges=[17 18 19];//list of edges to delete
[go]=NARVAL_G_DeleteEdges(g,edges);//application of NARVAL_G_DeleteEdges
f2=NARVAL_G_ShowGraph(go,i2);//graph visualization

Dependency

NARVAL_F_RemovIndexes, NARVAL_G_EdgeLength

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_CoulombForce NARVAL NARVAL_G_DeleteNodes >>