<< NL_G_LocalClustering NL_G: Graph NL_G_MaximumNodeDegree >>

NARVAL >> NL_G: Graph > NL_G_MakeGraph

NL_G_MakeGraph

Create a graph.

Calling Sequence

[G] = NL_G_MakeGraph(Name,N,T,H,X,Y)

Arguments

Name :

Graph name.

N :

Graph size.

T :

Links tail vector.

H :

Links head vector.

X :

Vector of nodes x-coordinates.

Y :

Vector of nodes y-coordinates.

G :

Graph.

Description

NL_G_MakeGraph creates the graph G defined by N nodes with x-coordinates and y-coordinates . The starting (respectivelly ending) node of each link is stored in (respectivelly ).

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]=NL_G_MakeGraph(name,n,tail,head,node_x,node_y)//application of NL_G_MakeGraph

Dependency

NL_G_GraphInit

Report an issue
<< NL_G_LocalClustering NL_G: Graph NL_G_MaximumNodeDegree >>