public void addBoughtItemsToItemGraph(ItemGraph itemGraph, BoughtItem... boughtItems) {
   List<BoughtItem> items = Arrays.asList(boughtItems);
   itemGraph.addBoughtItems(items);
 }
 public boolean checkForDoubleEdge(ItemGraph itemGraph, BoughtItem i1, BoughtItem i2) {
   return (itemGraph.getDaoHelper().getEdgeByFromTo(i1, i2, itemGraph.getSupermarket()) != null
       && itemGraph.getDaoHelper().getEdgeByFromTo(i2, i1, itemGraph.getSupermarket()) != null);
 }
 public ItemGraph createNewItemGraphWithSupermarketAndDaoHelper(
     String supermarketPlaceId, String supermarketName, DAOHelper daoHelper) {
   ItemGraph itemGraph = ItemGraph.getItemGraph(daoHelper, supermarketPlaceId, supermarketName);
   return itemGraph;
 }