tags:

views:

24

answers:

2

I want to store details of 100 nodes in 100 arrays. For example,

neighbors of node 1 should be stored in array1

In this, for each array the names should be changed like array1, array2, array3, ..., array100

I need the concatenation for array and ( 1 , 2 , 3 , ... , 100 ) using for loop.

How can I do this?

+4  A: 

Not exactly sure what you want, but a two dimensional array sounds like the way to go

set a(1,1) neighbourof1_1;
set a(1,2) neighbourof1_2;
set a(2,1) neighbourof2_1;
...
...
set a(100,1) neighbourof100_1;
jetru