Perform the number of internal links of a set of nodes.
Calling Sequence
[IL]=NARVAL_G_InternLinks(g,v)
Parameters
g :
graph.
v :
vector of nodes.
IL :
number of links.
Description
NARVAL_G_InternLinks performs the number of links IL between nodes of the set v inside the graph IL.
Examples
[path]=NARVAL_F_NARVALPath();//path to NARVAL modulepath=path+'/demos/';//folder pathname='topo_20.topo';//file nameLxmin=100;Lxmax=900;Lymin=100;Lymax=900;[g]=NARVAL_T_UploadTopology(path,name,Lxmin,Lxmax,Lymin,Lymax);//upload of a graphind=1;f=NARVAL_G_ShowGraph(g,ind);[neigh]=NARVAL_G_NodeNeighbors(6,g);//selection of the neighborhood of the node 6[IL]=NARVAL_G_InternLinks(g,neigh);//application of NARVAL_G_InternLinks IL