lattice.addEdge(a, b, logMath.linearToLog(acousticAB), 0);
lattice.addEdge(a, c, logMath.linearToLog(acousticAC), 0);
lattice.addEdge(c, b, logMath.linearToLog(acousticCB), 0);
lattice.addEdge(b, d, logMath.linearToLog(acousticBD), 0);
lattice.addEdge(c, d, logMath.linearToLog(acousticCD), 0);
lattice.computeNodePosteriors(1.0f);
double pathABD = acousticAB * acousticBD;
double pathACBD = acousticAC * acousticCB * acousticBD;
double pathACD = acousticAC * acousticCD;