<< NL_G_HighlightNetwork NL_G: Graph NL_G_HighlightNodesState >>

NARVAL >> NL_G: Graph > NL_G_HighlightNodes

NL_G_HighlightNodes

Highlight a set of nodes in a graph.

Calling Sequence

[Go,F] = NL_G_HighlightNodes(G,N,C,B,D,I)

Arguments

G :

Graph.

N :

Vector of nodes.

C :

Node colour.

B :

Node border.

D :

Node diameter.

I :

Window index.

:

Output graph.

F :

Handle of the graph window.

Description

NL_G_HighlightNodes highlights the set of nodes N of the graph G. Nodes are displayed with the colour C, the border B and the diameter D within the window of index I defined by its 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);//graph visualization
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,i2);//application of NL_G_HighlightNodes

Dependency

NL_G_OriginalGraph, NL_G_ShowGraph

Report an issue
<< NL_G_HighlightNetwork NL_G: Graph NL_G_HighlightNodesState >>