hello, I am a student of engineering in computer information sciences and for some days I'm trying to figure out how to parallelize this code, maybe someone can help me

// n is the number of nodes of a graph

// calculateValue returns a node weight

// all values of variables and arrays are positive integers

array= new int[n+1];

array[n]=0;

for(int i=n-1 ; i>=0 ; i--)

{

array[i]=calculateValue(i)+array[i+1];

}