<< NARVAL_G_AddEdges NARVAL NARVAL_G_AdjacencyMatrix >>

NARVAL >> NARVAL > NARVAL_G_AddNodes

NARVAL_G_AddNodes

Add new nodes to a graph.

Calling Sequence

[go] = NARVAL_G_AddNodes(g,xnodes,ynodes)

Parameters

g :

graph.

xnodes :

new nodes x-coordinates.

ynodes :

new nodes y-coordinates.

go :

output graph.

Description

NARVAL_G_AddNodes adds the set of n new nodes with coordinates [x1...xn,y1...yn] 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
xnodes=[300 350 400];//x-coordinates of new nodes
ynodes=[300 400 300];//y-coordinates of new nodes
[go]=NARVAL_G_AddNodes(g,xnodes,ynodes);//application of NARVAL_G_AddNodes
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_G_AddEdges NARVAL NARVAL_G_AdjacencyMatrix >>