<< NARVAL_F_XYRand NARVAL NARVAL_G_AddNodes >>

NARVAL >> NARVAL > NARVAL_G_AddEdges

NARVAL_G_AddEdges

Add new edges to a graph.

Calling Sequence

[go] = NARVAL_G_AddEdges(g,nh,nt)

Parameters

g :

graph.

nh :

starting nodes of new edges.

nt :

ending nodes of new edges.

go :

output graph.

Description

NARVAL_G_AddEdges adds the set of l new edges defined by their starting nodes nh=[nh1,...,nhl] and ending nodes nt=[nt1,...,ntl] into the graph g. The output graph is stored in go.

Examples

[g]=NARVAL_G_MakeGraph('g1',4,[1 2 3 4],[2 3 4 1],[100 100 900 900],[100 900 900 100]);//generation of a graph
nh=[1 2];//head vector of new edges
nt=[3 4];//tail vector of new edges
[go]=NARVAL_G_AddEdges(g,nh,nt);//application of NARVAL_G_AddEdges
i1=1;
f=NARVAL_G_ShowGraph(g,i1);//visualization of g
i2=2;
f2=NARVAL_G_ShowGraph(go,i2);//visualization of go

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_F_XYRand NARVAL NARVAL_G_AddNodes >>