code: public static void insideAlgorithm(final Hypergraph graph, final Hyperpotential w, final Semiring s,
              final Scores scores) {
          scores.beta = insideAlgorithm(graph, w, s);
      }
docs: Runs the inside algorithm on a hypergraph.
  INPUT:
  OUTPUT: scores.beta.
  
  @param graph The hypergraph.
  @param w The potential function.
  @param s The semiring.
  @param scores Input and output struct.