<< NL_G_GraphUnion NL_G: Graph NL_G_HighlightFldLeaves >>

NARVAL >> NL_G: Graph > NL_G_HighlightEdges

NL_G_HighlightEdges

Highlight a set of edges within a graph.

Calling Sequence

[Go,F] = NL_G_HighlightEdges(G,E,C,W,I)

Arguments

G :

Graph.

E :

Vector of edges.

C :

Edge colour.

W :

Edge width.

I :

Window index.

:

Output graph.

F :

Handle of the graph window.

Description

NL_G_HighlightEdges highlights the set of edges E of the graph G. These edges are displayed with the colour C and width W in 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);//graph visualization
c=5;//visualization parameters: color and width 
w=5;
i2=2;//window index
edges=[1 5 13];//list of edges
[gm,f2]=NL_G_HighlightEdges(g,edges,c,w,i2);//application of NL_G_HighlightEdges

Dependency

NL_G_OriginalGraph, NL_G_ShowGraph

Report an issue
<< NL_G_GraphUnion NL_G: Graph NL_G_HighlightFldLeaves >>