public static void oldevaluateRecommender(IGraph testDataSet, IRecommender reco)
  {
    int hitRecommed = 0;
    int userNumber = 0;
    List<INode> users = testDataSet.getNodesByType(RecommenderPropertiesHandle.getInstance().getUserType());
    for (INode user : users)
    {
      List<IEdge> ranks = user.getOutEdge(EdgeTypeFactory.getEdgeType(IEdgeType.EDGE_TYPE_TEST_RANK));
      if (ranks.isEmpty())
        continue;
      userNumber++;
      List<Rating> recommendtations = reco.recommend(user);
      System.out.println("Recommendation for User with code: "
                         + user.getProperty(RecommenderPropertiesHandle.getInstance().getUserIdentifierName()));
      int hit = 0;
      for (Rating rate : recommendtations)
      {
        for (IEdge edge : ranks)
        {
          String recommendedId = rate.getItem().getProperty(RecommenderPropertiesHandle.getInstance().getItemIdentifierName());
          String testRankId = edge.getSource().getProperty(RecommenderPropertiesHandle.getInstance().getItemIdentifierName());
          if (recommendedId.equalsIgnoreCase(testRankId));
          hit++;

        }


      }
      System.out.println("Hit Number for user "
                         + user.getProperty(RecommenderPropertiesHandle.getInstance().getUserIdentifierName())
                         + " = " + hit);
      if (hit > 0)
        hitRecommed++;
    }
    System.out.println("Hit percentage: " + (userNumber > 0 ? (double) hitRecommed / (double) userNumber : 0));
  }