<< 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 a set of new nodes with coordinates [xnodes,ynodes] to the graph g. The output graph is go.

Examples

[g]=NARVAL_G_MakeGraph('g1',4,[1 2 3 4],[2 3 4 1],[100 100 200 200],[100 200 200 100]);//generation of a graph
nh=[1 2];
nt=[3 4];
[go]=NARVAL_G_AddEdges(g,nh,nt);//application of NARVAL_G_AddEdges
i1=1;
f=NARVAL_G_ShowGraph(g,i1);
i2=2;
f2=NARVAL_G_ShowGraph(go,i2);
go

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_F_XYRand NARVAL NARVAL_G_AddNodes >>