ntg_waxman_dist - Generate Hierachical networks backbone=wax layers=wax users=central
Hierachical network generation. We select the quantity of backbone nodes with the Waxman method. We add L-1 layers using the Waxman method with parameters alpha and beta based on distributions(rand_dist(3:5,[1 4 1]) for the backbone and rand_dist(5:11,[ 1 3 6 10 6 3 1]) for other layers). We finally add basic users linked to the layer L with the distribution rand_dist(5:7,[ 1 5 1]).
alph=0.3; bet=0.5; n=10; L=1000; stage=2; diamb=20; diffdiam=5; colov=[2 5 6 1]; [ge,diam]=ntg_waxman_dist(alph,bet,n,L,stage,diamb,diffdiam); show_graph(ge);