Perform the distance distribution of a graph.
[D]=NARVAL_G_Distance(ERT)
enhanced routing table.
distance distribution.
NARVAL_G_Distance performs the distance distribution D of the graph g in respect with its enhanced routing table ERT. D provides the probability D(x) for a random pair of nodes to be at a distance x hops from each other.
[path]=NARVAL_F_NARVALPath();//path to NARVAL module path=path+'/demos/';//folder path load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables [D]=NARVAL_G_Distance(rt1);//application of NARVAL_G_Distance plo=1; scf(plo); clf(plo); f=gcf(); f.figure_name="NARVAL_G_Distance"; plot2d3(1:length(D),D,rect=[0 0 length(D) 1]); plot2d(1:length(D),D,rect=[0 0 length(D) 1],style=5); xtitle('Distance Distribution','Distance','Frequency'); | ![]() | ![]() |