Hey

i jst developed a basic model for finding neighbours.

the program runs afor loopto generate x,y arrays randomly .

x[] has x coordinates

y[] has y coordinates

of the nodes.

then using two for loops i calculate the distance between two nodes for each node.

if the dist< range i want to put the other node in my neigboutlist.

Since i have the coordinates of a node and its neighbours ,please suggest me how can i store and reference them in an organized way??