Highlight a network graph in respect with a defined metric per node.
[Go] = NL_G_HighlightNodesState(G,B,D,M,W)
Network graph.
Metric level of each network node used for the display.
Maximal node border.
Maximal metric level.
Window index.
Output graph.
NL_G_HighlightNodesState highlights the graph G in respect with a defined metric stored in the vector B. For instance, it can be used to represent the network load state consisting of the current level of each router buffer at the time T. Thus if this metric is bounded by M, then the nodes having this extremal value will be displayed with a border equal to D. This function has been designed in order to show the congestion state of a network. Thus when a router buffer is inferior to one half of M, it is displayed in black. Moreover the node border is proportional to its metric value. When it is included into the range , it is represented in blue. Else it is displayed in red when it is greater than
. The output graph
is shown in the graphical window W.
n=80;//network size L=1000;//network square area side dmax=100;//locality radius [g]=NL_T_LocalityConnex(n,L,dmax);//generation of a random topology in respect with the Locality method. bo=20;//maximal node border bum=bo;//maximal metric level w=1;//window index nf=length(g.node_x);//real network size bu=int((bo+1)*rand(nf,1));//generation of a random state [g]=NL_G_HighlightNodesState(g,bu,bo,bum,w);//application of NL_G_HighlightNodesState | ![]() | ![]() |