<< 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 finishing) node of each link is stored in head (respectivelly tail).

Examples

name='network';// graph name
n=3;
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;
[f]=NARVAL_G_ShowGraph(g,ind);
g

Dependency

NARVAL_G_GraphInit

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_MLClustering NARVAL NARVAL_G_MaxNodeDegree >>