<< NL_G_OriginalGraph NL_G: Graph NL_G_Path2Nodes >>

NARVAL >> NL_G: Graph > NL_G_ParametersUpdateNE

NL_G_ParametersUpdateNE

Update all visualization parameters of a graph.

Calling Sequence

[Go,F] = NL_G_ParametersUpdateNE(G,C,B,D,Ew,Ec,I)

Arguments

G :

Graph.

C :

Node colour vector.

B :

Node border vector.

D :

Node diameter vector.

:

Link width vector.

:

Link colour vector.

I :

Window index.

:

Output graph.

F :

Handle of the graph window.

Description

NL_G_ParametersUpdateNE updates all visualization parameters of the graph G composed by n nodes and l links. New parameters are the nodes colour vector C of size (1xn), the nodes border vector B of size (1xn), the nodes diameter vector D of size (1xn), the links width vector of size (1xl) and the links colour vector of size (1xl). The updated graph is displayed within the window of index I defined by its handle F. The output graph is .

Examples

[path]=NL_F_NLPath();//path to NARVAL module
path=path+'/demos/';//folder path
name='topo_20.topo';//file name
Lxmin=100;
Lxmax=900;
Lymin=100;
Lymax=900;
[g]=NL_G_LoadGraphNE(path,name,Lxmin,Lxmax,Lymin,Lymax);//graph loading
ind=1;//window index
f=NL_G_ShowGraphNE(g,ind);
c=[1 2 2 2 5 5 5 5 6 6 6 6 6];//visualization parameters 
b=[20 15 15 15 10 10 10 10 5 5 5 5 5];
d=[60 50 50 50 40 40 40 40 30 30 30 30 30];
ew=[5 5 5 4 4 4 4 4 3 3 3 3 3 3 3 3 3 2 2 2];
ec=[1 1 1 2 2 2 2 2 5 5 5 5 5 5 5 5 5 6 6 6];
i2=2;//window index
[grm,f2]=NL_G_ParametersUpdateNE(g,c,b,d,ew,ec,i2);//application of NL_G_ParametersUpdateNE

Dependency

NL_G_ShowGraph

Report an issue
<< NL_G_OriginalGraph NL_G: Graph NL_G_Path2Nodes >>