int i,j,nW; EDGE *eptr; for( eptr=e[i] ; eptr!=NULL ; eptr=eptr->next ){ j = eptr->nTo; nW = eptr->nWeight; // ここで枝(i,j)の重みがnW // 点jの最短経路長の比較・更新などを処理 }