code: @Nullable
    private static Double getPathWeight(State inState, State outState, HashMap<Integer,Double>[] closure) {
      if (closure[inState.getId()] != null) {
        return closure[inState.getId()].get(outState.getId());
      }
      return null;
    }
docs: Get an epsilon path's cost in epsilon closure