<< NL_M_GraphBS NL_M: Mobility NL_M_GraphRD >>

NARVAL >> NL_M: Mobility > NL_M_GraphDisplayUpdate

NL_M_GraphDisplayUpdate

Display a moving graph snapshot.

Calling Sequence

[F] = NL_M_GraphDisplayUpdate(G,I,R,C)

Arguments

G :

Graph.

I :

Window index.

R :

Node radius.

C :

Color.

F :

Graph handle.

Description

NL_M_GraphDisplayUpdate display a snapshot of the moving graph G inside the window of index I and handle F. Each node is displayed with the radius R and the color C.

Examples

n=100;
cr=50;
L=1000;
nx=L*rand(1,n);//current x-coordinate of all nodes
ny=L*rand(1,n);//current y-coordinate of all nodes
n=3;
cr=250;
nx=[100 200 300];
ny=[100 300 100];
t=[];
h=[];
name='network';
[g]=NL_G_MakeGraph(name,n,t,h,nx,ny);//creation of a network graph
[h,t]=NL_M_Locality(g.node_x,g.node_y,cr);//application of NL_M_Locality
g.head=h;
g.tail=t;
i=1;//window index
name="mobility";//name
f=NL_M_Background(i,name);//initialization of the network area
r=30;//radius
c=2;//color
f=NL_M_GraphDisplayUpdate(g,i,r,c);//application of NL_M_NetworkDisplayUpdate

Report an issue
<< NL_M_GraphBS NL_M: Mobility NL_M_GraphRD >>