NL_G_WeightOfPath performs the total weight W of the path P inside the graph G.
Examples
n=100;//network sizel=1000;//network squared area sided=100;//Locality radius[g]=NL_T_LocalityConnex(n,l,d);//generation of a topologyw=1;//window indexf=NL_G_ShowGraphN(g,w);//graph visualization[i,j]=NL_F_RandIntNiNj(g.node_number);//selection of the extremal nodes[p]=NL_R_DijkstraNiNj(g,i,j)//path performance[pl]=NL_G_WeightOfPath(g,p)//application of NL_G_WeightOfPath