<< BriteToSci Network Topology Generator Delet >>

Network Topology Generator >> Network Topology Generator > CirclePlace

CirclePlace

Connect new neighbor nodes around a central node.

Calling Sequence

[ge]=CirclePlace(n,d,g,i)

Parameters

n :

quantity of neighbor nodes.

d :

maximal radius from the central node.

g :

initial network graph.

i :

central node index.

ge :

union graph.

Description

CirclePlace connects n nodes around the central node of index i within the original graph g. They are randomly placed inside a disc of radius d centered around the node i. The distance between any new nodes and the central node belongs to the range [d/2,d].

Examples

n=150;//original network size 
L=1000;//network square area side
dmax=100;//Locality radius
[g]=NtgLocalityConnex(n,L,dmax);//generation of a topology in respect with the Locality method
gn=length(g.node_x);//real network size 
i=Random(gn);//selection of the central node
N=10;//quantity of new nodes
d=50;//disc radius
[ge]=CirclePlace(N,d,g,i);//application of CirclePlace
ge.edge_color=[ones(1,length(g.head)) 5*ones(1,N)];//display the union graph
ge.edge_width=[ones(1,length(g.head)) 1.5*ones(1,N)];
ge.node_color=[ones(1,length(g.node_x)) 5*ones(1,N)];
ge.node_color(i)=2;
ge.node_border=[ones(1,length(g.node_x)) 1.5*ones(1,N)];
ge.node_border(i)=2;
show_graph(ge);

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact


<< BriteToSci Network Topology Generator Delet >>