<< NL_G_Nodes2Path NL_G: Graph NL_G_ParametersUpdateNE >>

NARVAL >> NL_G: Graph > NL_G_OriginalGraph

NL_G_OriginalGraph

Modify the graph parameters to their default values.

Calling Sequence

[Go] = NL_G_OriginalGraph(G)

Arguments

G :

Graph.

:

Original graph.

Description

NL_G_OriginalGraph changes the visualization parameters of the graph G by their default values. The generated graph is stored in . The graph is composed by n nodes defined by their x-coordinates node_x and y-coordinates node_y. The starting (respectivelly ending) node of each link is stored in head (respectivelly tail).

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=5;//visualization parameters: color, border and diameter 
b=10;
d=50;
i2=2;//window index
nodes=[1 2 6 10];//list of nodes
[gm,f2]=NL_G_HighlightNodes(g,nodes,c,b,d,2);//graph modification
i3=3;//window index
[go]=NL_G_OriginalGraph(gm);//application of NL_G_OriginalGraph
f3=NL_G_ShowGraph(go,i3);//graph visualization

Dependency

NL_G_MakeGraph

Report an issue
<< NL_G_Nodes2Path NL_G: Graph NL_G_ParametersUpdateNE >>