<< NARVAL_G_Nodes2Path NARVAL NARVAL_G_Path2Nodes >>

NARVAL >> NARVAL > NARVAL_G_OriginalGraph

NARVAL_G_OriginalGraph

Modify the graph parameters to their default values.

Calling Sequence

[go] = NARVAL_G_OriginalGraph(g)

Parameters

g :

network graph.

go :

original network graph.

Description

NARVAL_G_OriginalGraph changes the visualization parameters of the graph g by their default values. The generated graph is stored in go. The graph go is composed by n nodes defined by their x-coordinates node_x and y-coordinates node_y. The starting (respectivelly ending) node of each link is stored in head (respectivelly tail).

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);//graph loading
ind=1;//window index
f=NARVAL_G_ShowNodesEdges(g,ind);
c=5;//visualization parameters: color, border and diameter 
b=10;
d=50;
i2=2;//window index
nodes=[1 2 6 10];//list of nodes
[gm,f2]=NARVAL_G_ShowNodes(g,nodes,c,b,d,2);//graph modification
i3=3;//window index
[go]=NARVAL_G_OriginalGraph(gm);//application of NARVAL_G_OriginalGraph
f3=NARVAL_G_ShowGraph(go,i3);//graph visualization

Dependency

NARVAL_G_MakeGraph

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_Nodes2Path NARVAL NARVAL_G_Path2Nodes >>