g[v][h][c]=f[v][i][c];