<< NL_T_BarabasiAlbert NL_T: Topology NL_T_Locality >>

NARVAL >> NL_T: Topology > NL_T_Grid

NL_T_Grid

Generate a homogeneous grid.

Calling Sequence

[G] = NL_T_Grid(L,C,X,Y)

Arguments

L :

Number of nodes per line.

C :

Number of nodes per column.

X :

X-side of the network area.

Y :

Y-side of the network area.

G :

Graph.

Description

NL_T_Grid creates a uniform grid topology G composed by L lines and C columns inside a rectangle area with x-side X and y-side Y.

Examples

l=5;//number of lines
c=7;//number of columns
Lx=1000;//network area x-side
Ly=1000;//network area x-side
[g]=NL_T_Grid(l,c,Lx,Ly);//application of NL_T_Grid
NL_G_ShowGraphNE(g,1);//graph visualization

Dependency

NL_G_MakeGraph, NL_G_GraphEdgesLength

Report an issue
<< NL_T_BarabasiAlbert NL_T: Topology NL_T_Locality >>