001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU Lesser General Public License (LGPL): http://www.gnu.org/licenses/
004    
005    package graphlab.library.algorithms.goperators.product;
006    
007    import graphlab.library.BaseVertex;
008    
009    //todo: doc needed (rostam)
010    public class GPopularProduct extends GProduct {
011        public boolean compare(BaseVertex v1OfFirstG, BaseVertex v2OfFirstG, BaseVertex v1OfSecondG, BaseVertex v2OfSecondG) {
012            return g1.isEdge(v1OfFirstG, v2OfFirstG)
013                    && g2.isEdge(v1OfSecondG, v2OfSecondG);
014        }
015    }