Yes, use an array. More interesting is why you want it. If your program requires this to work, you need to make sure your array is large enough to store all the nodes that can be allocated. If not, you can highlight batches of nodes.
FYI. I saw this strategy used in the past on the assumption that consecutively allocated nodes will lead to fewer misses in the cache when searching the list. In the system of interest, this did not actually improve performance. [Not enough profiling, of course!]
source share