<< NARVAL_G_Spectrum NARVAL NARVAL_G_UCoordinates >>

NARVAL >> NARVAL > NARVAL_G_SplitEdge

NARVAL_G_SplitEdge

Insert new nodes inside an edge of a graph.

Calling Sequence

[go]=NARVAL_G_SplitEdge(g,e,ns)

Parameters

g :

network graph.

e :

edge index.

ns :

quantity of new nodes.

go :

output graph.

Description

NARVAL_G_SplitEdge inserts a set of ns new nodes linealy distributed between the extremal nodes of a selected edge e of 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);
e=3;
ns=3;
[go]=NARVAL_G_SplitEdge(g,e,ns);//application of NARVAL_G_SplitEdge
i2=2;
f2=NARVAL_G_ShowGraph(go,i2);

Dependency

NARVAL_G_DeleteEdges, NARVAL_G_EdgeLength

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_Spectrum NARVAL NARVAL_G_UCoordinates >>