<< NARVAL_G_MLClustering NARVAL NARVAL_G_MaxNodeDegree >>

NARVAL >> NARVAL > NARVAL_G_MakeGraph

NARVAL_G_MakeGraph

Create a graph.

Calling Sequence

[g] = NARVAL_G_MakeGraph(name,n,tail,head,node_x,node_y)

Parameters

name :

graph name.

n :

graph size.

tail :

links tail vector.

head :

links head vector.

node_x :

vector of nodes x-coordinates.

node_y :

vector of nodes y-coordinates.

g :

network graph.

Description

NARVAL_G_MakeGraph creates the graph g defined by n nodes with x-coordinates node_x and y-coordinates node_y. The starting (respectivelly ending) node of each link is stored in head (respectivelly tail).

Examples

name='network';// graph name
n=3;//graph parameters
tail=[2 3 3];
head=[1 1 2];
node_x=[100 700 200];
node_y=[200 800 600];
[g]=NARVAL_G_MakeGraph(name,n,tail,head,node_x,node_y);//application of NARVAL_G_MakeGraph
ind=1;//window index
[f]=NARVAL_G_ShowNodesEdges(g,ind);//graph visualization

Dependency

NARVAL_G_GraphInit

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_MLClustering NARVAL NARVAL_G_MaxNodeDegree >>