code: private Tensor getMsgs(VarTensor[] inMsgs, int tf) {
          Algebra s = inMsgs[0].getAlgebra();
          EdgeScores es = new EdgeScores(n, s.zero());
          for (VarTensor inMsg : inMsgs) {
              LinkVar link = (LinkVar) inMsg.getVars().get(0);            
              double val = inMsg.getValue(tf);
              es.setScore(link.getParent(), link.getChild(), val);
          }
          return es.toTensor(s);
      }
docs: Gets messages from the Messages[].
  
  @param inMsgs The input messages.
  @param tf Whether to get TRUE or FALSE messages.
  @return The messages as a Tensor.