<< MobilityNeighborhood Network Topology Generator MobilityNodeRWP >>

Network Topology Generator >> Network Topology Generator > MobilityNeighborhoodN

MobilityNeighborhoodN

Perform the 1-hop neighborhood of a network node with extended outputs.

Calling Sequence

[N,Nh,Nt]=MobilityNeighborhood(i,head,tail)

Parameters

i :

node index.

head :

links head vector.

tail :

links tail vector.

N :

1-hop neighborhood of the node i.

Nh :

1-hop neighborhood of the node i belonging to the graph's head vector.

Nt :

1-hop neighborhood of the node i belonging to the graph's tail vector.

Description

MobilityNeighborhoodN performs the neighborhood of a network node. Extraction is made according to head and tail vectors.

Examples

n=80;//network size
L=1000;//network square area side
dmax=100;//locality radius
[g]=NtgLocalityConnex(n,L,dmax);//generation of a random topology in respect with the Locality method. 
i=Random(length(g.node_x));//selection of the source node
show_graph(g);
[N,Nh,Nt]=MobilityNeighborhoodN(i,g.head,g.tail);//application of MobilityNeighborhoodN
hilite_nodes(N);
N
Nh
Nt

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact


<< MobilityNeighborhood Network Topology Generator MobilityNodeRWP >>