/** * Test whether the two vertices have equal properties and edge sets. * * @param a the first vertex * @param b the second vertex * @param checkIdEquality whether to check on vertex and edge ids * @return whether the two vertices are semantically the same */ public static boolean haveEqualNeighborhood(final Vertex a, final Vertex b, final boolean checkIdEquality) { if (checkIdEquality && !ElementHelper.haveEqualIds(a, b)) return false; return ElementHelper.haveEqualProperties(a, b) && haveEqualEdges(a, b, checkIdEquality); }