<< NARVAL_G_DeleteEdges NARVAL NARVAL_G_DiameterERT >>

NARVAL >> NARVAL > NARVAL_G_DeleteNodes

NARVAL_G_DeleteNodes

Remove a set of nodes from a graph.

Calling Sequence

[go]=NARVAL_G_DeleteNodes(g,nodes)

Parameters

g :

graph.

nodes :

index vector of nodes.

go :

output graph.

Description

NARVAL_G_DeleteNodes removes the set of nodes whose indexes belong to nodes 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;
nodes=[4 8 11 12 13];//list of nodes to delete
[go]=NARVAL_G_DeleteNodes(g,nodes);//application of NARVAL_G_DeleteNodes
f2=NARVAL_G_ShowGraph(go,i2);
go

Dependency

NARVAL_G_EdgesOfNode, NARVAL_G_DeleteEdges, NARVAL_F_RemovIndex, NARVAL_G_EdgeLength

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_DeleteEdges NARVAL NARVAL_G_DiameterERT >>