<< 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,edges)

Parameters

g :

graph.

edges :

index vector of edges.

go :

output graph.

Description

NARVAL_G_DeleteEdges removes the set of edges whose indexes belong to edges 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;
f=NARVAL_G_ShowGraph(g,ind);
i2=2;
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);
go

Dependency

NARVAL_F_RemovIndexes, NARVAL_G_EdgeLength

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_CoulombForce NARVAL NARVAL_G_DeleteNodes >>